#import <ThingKVOController.h>
@abstract ThingKVOController makes Key-Value Observing simpler and safer. @discussion ThingKVOController adds support for handling key-value changes with blocks and custom actions, as well as the NSKeyValueObserving callback. Notification will never message a deallocated observer. Observer removal never throws exceptions, and observers are removed implicitly on controller deallocation. ThingKVOController is also thread safe. When used in a concurrent environment, it protects observers from possible resurrection and avoids ensuing crash. By default, the controller maintains a strong reference to objects observed.
Definition at line 57 of file ThingKVOController.h.
◆ controllerWithObserver: [1/4]
+ (instancetype) controllerWithObserver: |
|
(nullable id) |
observer |
|
@abstract Creates and returns an initialized KVO controller instance.
- Parameters
-
observer | The object notified on key-value change. |
- Returns
- The initialized KVO controller instance.
◆ controllerWithObserver: [2/4]
+ (instancetype) controllerWithObserver: |
|
(nullable id) |
observer |
|
@abstract Creates and returns an initialized KVO controller instance.
- Parameters
-
observer | The object notified on key-value change. |
- Returns
- The initialized KVO controller instance.
◆ controllerWithObserver: [3/4]
+ (instancetype) controllerWithObserver: |
|
(nullable id) |
observer |
|
@abstract Creates and returns an initialized KVO controller instance.
- Parameters
-
observer | The object notified on key-value change. |
- Returns
- The initialized KVO controller instance.
◆ controllerWithObserver: [4/4]
+ (instancetype) controllerWithObserver: |
|
(nullable id) |
observer |
|
@abstract Creates and returns an initialized KVO controller instance.
- Parameters
-
observer | The object notified on key-value change. |
- Returns
- The initialized KVO controller instance.
◆ initWithObserver: [1/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
|
@abstract Convenience initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
- Returns
- The initialized KVO controller instance. @discussion By default, KVO controller retains objects observed.
◆ initWithObserver: [2/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
|
@abstract Convenience initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
- Returns
- The initialized KVO controller instance. @discussion By default, KVO controller retains objects observed.
◆ initWithObserver: [3/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
|
@abstract Convenience initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
- Returns
- The initialized KVO controller instance. @discussion By default, KVO controller retains objects observed.
◆ initWithObserver: [4/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
|
@abstract Convenience initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
- Returns
- The initialized KVO controller instance. @discussion By default, KVO controller retains objects observed.
◆ initWithObserver:retainObserved: [1/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
retainObserved: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
@abstract The designated initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
retainObserved | Flag indicating whether observed objects should be retained. |
- Returns
- The initialized KVO controller instance. @discussion Use retainObserved = NO when a strong reference between controller and observee would create a retain loop. When not retaining observees, special care must be taken to remove observation info prior to observee dealloc.
◆ initWithObserver:retainObserved: [2/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
retainObserved: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
@abstract The designated initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
retainObserved | Flag indicating whether observed objects should be retained. |
- Returns
- The initialized KVO controller instance. @discussion Use retainObserved = NO when a strong reference between controller and observee would create a retain loop. When not retaining observees, special care must be taken to remove observation info prior to observee dealloc.
◆ initWithObserver:retainObserved: [3/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
retainObserved: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
@abstract The designated initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
retainObserved | Flag indicating whether observed objects should be retained. |
- Returns
- The initialized KVO controller instance. @discussion Use retainObserved = NO when a strong reference between controller and observee would create a retain loop. When not retaining observees, special care must be taken to remove observation info prior to observee dealloc.
◆ initWithObserver:retainObserved: [4/4]
- (instancetype) initWithObserver: |
|
(nullable id) |
observer |
retainObserved: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
@abstract The designated initializer.
- Parameters
-
observer | The object notified on key-value change. The specified observer must support weak references. |
retainObserved | Flag indicating whether observed objects should be retained. |
- Returns
- The initialized KVO controller instance. @discussion Use retainObserved = NO when a strong reference between controller and observee would create a retain loop. When not retaining observees, special care must be taken to remove observation info prior to observee dealloc.
◆ NS_UNAVAILABLE [1/8]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Allocates memory and initializes a new instance into it.
- Warning
- This method is unavaialble. Please use
controllerWithObserver:
instead.
◆ NS_UNAVAILABLE [2/8]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Allocates memory and initializes a new instance into it.
- Warning
- This method is unavaialble. Please use
controllerWithObserver:
instead.
◆ NS_UNAVAILABLE [3/8]
- (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Initializes a new instance.
- Warning
- This method is unavaialble. Please use
initWithObserver:
instead.
◆ NS_UNAVAILABLE [4/8]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Allocates memory and initializes a new instance into it.
- Warning
- This method is unavaialble. Please use
controllerWithObserver:
instead.
◆ NS_UNAVAILABLE [5/8]
- (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Initializes a new instance.
- Warning
- This method is unavaialble. Please use
initWithObserver:
instead.
◆ NS_UNAVAILABLE [6/8]
- (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Initializes a new instance.
- Warning
- This method is unavaialble. Please use
initWithObserver:
instead.
◆ NS_UNAVAILABLE [7/8]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Allocates memory and initializes a new instance into it.
- Warning
- This method is unavaialble. Please use
controllerWithObserver:
instead.
◆ NS_UNAVAILABLE [8/8]
- (instancetype) NS_UNAVAILABLE |
|
|
|
@abstract Initializes a new instance.
- Warning
- This method is unavaialble. Please use
initWithObserver:
instead.
◆ observe:keyPath:options:action: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPath:options:action: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPath:options:action: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPath:options:action: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPath:options:block: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. In order to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:block: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. In order to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:block: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. In order to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:block: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. In order to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:context: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:context: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:context: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPath:options:context: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPath | The key path to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:action: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPaths:options:action: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPaths:options:action: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPaths:options:action: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
action: |
|
(SEL) |
action |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
action | The observer selector called on key-value change. @discussion On key-value change, the observer's action selector is called. The selector provided should take the form of -propertyDidChange, -propertyDidChange: or -propertyDidChange:object:, where optional parameters delivered will be KVO change dictionary and object observed. Observing nil or observing an already observed object's key path results in no operation. |
◆ observe:keyPaths:options:block: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. Inorder to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:block: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. Inorder to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:block: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. Inorder to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:block: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
block: |
|
(ThingKVONotificationBlock) |
block |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
block | The block to execute on notification. @discussion On key-value change, the specified block is called. Inorder to avoid retain loops, the block must avoid referencing the KVO controller or an owner thereof. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:context: [1/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:context: [2/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:context: [3/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ observe:keyPaths:options:context: [4/4]
- (void) observe: |
|
(nullable id) |
object |
keyPaths: |
|
(NSArray< NSString * > *) |
keyPaths |
options: |
|
(NSKeyValueObservingOptions) |
options |
context: |
|
(nullable void *) |
context |
|
|
| |
@abstract Registers observer for key-value change notification.
- Parameters
-
object | The object to observe. |
keyPaths | The key paths to observe. |
options | The NSKeyValueObservingOptions to use for observation. |
context | The context specified. @discussion On key-value change, the observer's -observeValueForKeyPath:ofObject:change:context: method is called. Observing an already observed object key path or nil results in no operation. |
◆ unobserve: [1/4]
- (void) unobserve: |
|
(nullable id) |
object |
|
@abstract Unobserve all object key paths.
- Parameters
-
object | The object to unobserve. @discussion If not observing object, or unobserving nil, this method results in no operation. |
◆ unobserve: [2/4]
- (void) unobserve: |
|
(nullable id) |
object |
|
@abstract Unobserve all object key paths.
- Parameters
-
object | The object to unobserve. @discussion If not observing object, or unobserving nil, this method results in no operation. |
◆ unobserve: [3/4]
- (void) unobserve: |
|
(nullable id) |
object |
|
@abstract Unobserve all object key paths.
- Parameters
-
object | The object to unobserve. @discussion If not observing object, or unobserving nil, this method results in no operation. |
◆ unobserve: [4/4]
- (void) unobserve: |
|
(nullable id) |
object |
|
@abstract Unobserve all object key paths.
- Parameters
-
object | The object to unobserve. @discussion If not observing object, or unobserving nil, this method results in no operation. |
◆ unobserve:keyPath: [1/4]
- (void) unobserve: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
|
|
| |
@abstract Unobserve object key path.
- Parameters
-
object | The object to unobserve. |
keyPath | The key path to observe. @discussion If not observing object key path, or unobserving nil, this method results in no operation. |
◆ unobserve:keyPath: [2/4]
- (void) unobserve: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
|
|
| |
@abstract Unobserve object key path.
- Parameters
-
object | The object to unobserve. |
keyPath | The key path to observe. @discussion If not observing object key path, or unobserving nil, this method results in no operation. |
◆ unobserve:keyPath: [3/4]
- (void) unobserve: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
|
|
| |
@abstract Unobserve object key path.
- Parameters
-
object | The object to unobserve. |
keyPath | The key path to observe. @discussion If not observing object key path, or unobserving nil, this method results in no operation. |
◆ unobserve:keyPath: [4/4]
- (void) unobserve: |
|
(nullable id) |
object |
keyPath: |
|
(NSString *) |
keyPath |
|
|
| |
@abstract Unobserve object key path.
- Parameters
-
object | The object to unobserve. |
keyPath | The key path to observe. @discussion If not observing object key path, or unobserving nil, this method results in no operation. |
◆ unobserveAll [1/4]
@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.
◆ unobserveAll [2/4]
@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.
◆ unobserveAll [3/4]
@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.
◆ unobserveAll [4/4]
@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.
◆ observer
The observer notified on key-value change. Specified on initialization.
Definition at line 108 of file ThingKVOController.h.
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/ios-arm64_x86_64-simulator/ThingFoundationKit.framework/Headers/ThingKVOController.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/watchos-arm64_i386_x86_64-simulator/ThingFoundationKit.framework/Headers/ThingKVOController.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/ios-arm64/ThingFoundationKit.framework/Headers/ThingKVOController.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/watchos-arm64_arm64_32_armv7k/ThingFoundationKit.framework/Headers/ThingKVOController.h