FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSAOverridingMediator.h
Go to the documentation of this file.
1 //
2 // NSAOverridingMediator.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 13. 5. 12..
6 // Copyright (c) 2013 youknowone.org. All rights reserved.
7 //
8 
14 #import <Foundation/Foundation.h>
15 
19 @interface NSAOverridingMediator : NSObject {
20  id _origin;
23 }
24 
32 - (instancetype)initWithOrigin:(id)origin override:(id)override suppressive:(BOOL)suppressive;
33 
34 + (instancetype)mediatorWithOrigin:(id)origin override:(id)override;
35 + (instancetype)mediatorWithOrigin:(id)origin override:(id)override suppressive:(BOOL)suppressive;
36 
37 @property(nonatomic, strong) id origin;
38 @property(nonatomic, strong) id override;
39 @property(nonatomic, assign) BOOL suppressive;
40 
41 @end
A mediator to select origin or overrided method. Useful for partial protocol implementation.
Definition: NSAOverridingMediator.h:19
BOOL _suppressive
Definition: NSAOverridingMediator.h:22
id _override
Definition: NSAOverridingMediator.h:21
id _origin
Definition: NSAOverridingMediator.h:20