Tuya iOS Smart Life App SDK 5.15.0
ThingKVOController Class Reference

#import <ThingKVOController.h>

Inheritance diagram for ThingKVOController:

Instance Methods

(instancetype) - initWithObserver:retainObserved:
 
(instancetype) - initWithObserver:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - observe:keyPath:options:block:
 
(void) - observe:keyPath:options:action:
 
(void) - observe:keyPath:options:context:
 
(void) - observe:keyPaths:options:block:
 
(void) - observe:keyPaths:options:action:
 
(void) - observe:keyPaths:options:context:
 
(void) - unobserve:keyPath:
 
(void) - unobserve:
 
(void) - unobserveAll
 
(instancetype) - initWithObserver:retainObserved:
 
(instancetype) - initWithObserver:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - observe:keyPath:options:block:
 
(void) - observe:keyPath:options:action:
 
(void) - observe:keyPath:options:context:
 
(void) - observe:keyPaths:options:block:
 
(void) - observe:keyPaths:options:action:
 
(void) - observe:keyPaths:options:context:
 
(void) - unobserve:keyPath:
 
(void) - unobserve:
 
(void) - unobserveAll
 
(instancetype) - initWithObserver:retainObserved:
 
(instancetype) - initWithObserver:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - observe:keyPath:options:block:
 
(void) - observe:keyPath:options:action:
 
(void) - observe:keyPath:options:context:
 
(void) - observe:keyPaths:options:block:
 
(void) - observe:keyPaths:options:action:
 
(void) - observe:keyPaths:options:context:
 
(void) - unobserve:keyPath:
 
(void) - unobserve:
 
(void) - unobserveAll
 
(instancetype) - initWithObserver:retainObserved:
 
(instancetype) - initWithObserver:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - observe:keyPath:options:block:
 
(void) - observe:keyPath:options:action:
 
(void) - observe:keyPath:options:context:
 
(void) - observe:keyPaths:options:block:
 
(void) - observe:keyPaths:options:action:
 
(void) - observe:keyPaths:options:context:
 
(void) - unobserve:keyPath:
 
(void) - unobserve:
 
(void) - unobserveAll
 

Class Methods

(instancetype) + controllerWithObserver:
 
(instancetype) + NS_UNAVAILABLE
 
(instancetype) + controllerWithObserver:
 
(instancetype) + NS_UNAVAILABLE
 
(instancetype) + controllerWithObserver:
 
(instancetype) + NS_UNAVAILABLE
 
(instancetype) + controllerWithObserver:
 
(instancetype) + NS_UNAVAILABLE
 

Properties

id observer
 

Detailed Description

@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.

Method Documentation

◆ controllerWithObserver: [1/4]

+ (instancetype) controllerWithObserver: (nullable id)  observer


@abstract Creates and returns an initialized KVO controller instance.

Parameters
observerThe 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
observerThe 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
observerThe 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
observerThe object notified on key-value change.
Returns
The initialized KVO controller instance.

◆ initWithObserver: [1/4]

- (instancetype) initWithObserver: (nullable id)  observer

@abstract Convenience initializer.

Parameters
observerThe 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
observerThe 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
observerThe 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
observerThe 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
observerThe object notified on key-value change. The specified observer must support weak references.
retainObservedFlag 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
observerThe object notified on key-value change. The specified observer must support weak references.
retainObservedFlag 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
observerThe object notified on key-value change. The specified observer must support weak references.
retainObservedFlag 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
observerThe object notified on key-value change. The specified observer must support weak references.
retainObservedFlag 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathThe key path to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
actionThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
blockThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe object to observe.
keyPathsThe key paths to observe.
optionsThe NSKeyValueObservingOptions to use for observation.
contextThe 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
objectThe 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
objectThe 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
objectThe 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
objectThe 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
objectThe object to unobserve.
keyPathThe 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
objectThe object to unobserve.
keyPathThe 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
objectThe object to unobserve.
keyPathThe 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
objectThe object to unobserve.
keyPathThe key path to observe. @discussion If not observing object key path, or unobserving nil, this method results in no operation.

◆ unobserveAll [1/4]

- (void) unobserveAll

@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.

◆ unobserveAll [2/4]

- (void) unobserveAll

@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.

◆ unobserveAll [3/4]

- (void) unobserveAll

@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.

◆ unobserveAll [4/4]

- (void) unobserveAll

@abstract Unobserve all objects. @discussion If not observing any objects, this method results in no operation.

Property Documentation

◆ observer

- (id) observer
readnonatomicweak


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: