Skip to content

A simple proxy class that multiplexes and dispatches protocol methods to multiple objects.

License

Notifications You must be signed in to change notification settings

alessandroorru/AOMultiproxier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AOMultiproxier

Version License Platform

A simple proxy class that multiplexes and dispatches protocol methods to multiple objects.

Installation

AOMultiproxier is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AOMultiproxier"

Example

In your header:

@property (nonatomic, strong) UIScrollView * scrollView;
@property (nonatomic, strong) AOMultiproxier <UIScrollViewDelegate> scrollViewDelegateProxy;

In your init:

self.scrollViewDelegateProxy = AOMultiproxierForProtocol(UIScrollViewDelegate, aScrollViewDelegate, anotherScrollViewDelegate);

self.scrollView.delegate = self.scrollViewDelegateProxy;

Author

Alessandro Orrù, alessandro.orr@gmail.com, @alessandroorru on Twitter

License

AOMultiproxier is available under the MIT license. See the LICENSE file for more info.

About

A simple proxy class that multiplexes and dispatches protocol methods to multiple objects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published