NSObject <objc/runtime.h> extensions.
More...
#import <NSObject.h>
- (id) associatedObjectForKey: |
|
(void *) |
key |
|
Returns the value associated with a given object for a given key.
- Parameters
-
object | The source object for the association. |
key | The key for the association. |
- Returns
- The value associated with the key key for object.
- See also
- objc_getAssociatedObject
- (id) performSelector: |
|
(SEL) |
sel |
withObject: |
|
(id) |
obj1 |
withObject: |
|
(id) |
obj2 |
withObject: |
|
(id) |
obj3 |
|
|
| |
Invokes a method of the receiver with 3 parameter.
- Parameters
-
sel | A selector that identifies the method to invoke. The method should take 3 argument of type id. |
obj1 | a parameter |
obj2 | a parameter |
obj3 | a parameter |
- See also
- performSelector:withObject:
-
performSelector:withObject:withObject:
-
performSelector:withObject:withObject:withObject:withObject:
- (id) performSelector: |
|
(SEL) |
sel |
withObject: |
|
(id) |
obj1 |
withObject: |
|
(id) |
obj2 |
withObject: |
|
(id) |
obj3 |
withObject: |
|
(id) |
obj4 |
|
|
| |
Invokes a method of the receiver with 4 parameter.
- Parameters
-
sel | A selector that identifies the method to invoke. The method should take 4 argument of type id. |
obj1 | a parameter |
obj2 | a parameter |
obj3 | a parameter |
obj4 | a parameter |
- See also
- performSelector:withObject:
-
performSelector:withObject:withObject:
-
performSelector:withObject:withObject:withObject:
- (void) removeAssociatedObjectForKey: |
|
(void *) |
key |
|
Removes all associations for a given object. Association policy is retain
.
- Parameters
-
object | The source object for the association. |
setAssociatedObject:nil forKey:key
- See also
- objc_setAssociatedObject
- (void) removeAssociatedObjectForKey: |
|
(void *) |
key |
policy: |
|
(objc_AssociationPolicy) |
policy |
|
|
| |
Removes all associations for a given object.
- Parameters
-
setAssociatedObject:nil forKey:key policy:policy
- See also
- objc_setAssociatedObject
- (void) setAssociatedObject: |
|
(id) |
object |
forKey: |
|
(void *) |
key |
|
|
| |
Sets an associated value for a given object using a given key. Association policy is retain
.
- Parameters
-
object | The source object for the association. |
key | The key for the association. |
value | The value to associate with the key key for object. Pass nil to clear an existing association. |
- See also
- objc_setAssociatedObject
- (void) setAssociatedObject: |
|
(id) |
object |
forKey: |
|
(void *) |
key |
policy: |
|
(objc_AssociationPolicy) |
policy |
|
|
| |
Sets an associated value for a given object using a given key and association policy.
- Parameters
-
object | The source object for the association. |
key | The key for the association. |
value | The value to associate with the key key for object. Pass nil to clear an existing association. |
policy | The policy for the association. For possible values, see Associative Object Behaviors. |
- See also
- objc_setAssociatedObject
The documentation for this category was generated from the following file: