FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSAOverridingMediator Class Reference

A mediator to select origin or overrided method. Useful for partial protocol implementation. More...

#import <NSAOverridingMediator.h>

Inheritance diagram for NSAOverridingMediator:

Instance Methods

(instancetype) - initWithOrigin:override:suppressive:
 Initialize partial overrider. More...
 

Class Methods

(instancetype) + mediatorWithOrigin:override:
 
(instancetype) + mediatorWithOrigin:override:suppressive:
 

Protected Attributes

id _origin
 
id _override
 
BOOL _suppressive
 

Properties

id origin
 
id override
 
BOOL suppressive
 

Detailed Description

A mediator to select origin or overrided method. Useful for partial protocol implementation.

Method Documentation

- (instancetype) initWithOrigin: (id)  origin
override: (id)  override
suppressive: (BOOL)  suppressive 

Initialize partial overrider.

Parameters
originOrigin implementation.
overrideOverrided implementation.
suppressiveSuppress overrided implementation or not.
Returns
Returns a mediator of origin and overrided objects.
+ (instancetype) mediatorWithOrigin: (id)  origin
override: (id)  override 
+ (instancetype) mediatorWithOrigin: (id)  origin
override: (id)  override
suppressive: (BOOL)  suppressive 

Member Data Documentation

- (id) _origin
protected
- (id) _override
protected
- (BOOL) _suppressive
protected

Property Documentation

- (id) origin
readwritenonatomicstrong
- (id) override
readwritenonatomicstrong
- (BOOL) suppressive
readwritenonatomicassign

The documentation for this class was generated from the following file: