FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSObject(ObjCRuntime) Category Reference

NSObject <objc/runtime.h> extensions. More...

#import <NSObject.h>

Instance Methods

performSelector
(id) - performSelector:withObject:withObject:withObject:
 Invokes a method of the receiver with 3 parameter. More...
 
(id) - performSelector:withObject:withObject:withObject:withObject:
 Invokes a method of the receiver with 4 parameter. More...
 
Associative References
(id) - associatedObjectForKey:
 Returns the value associated with a given object for a given key. More...
 
(void) - setAssociatedObject:forKey:
 Sets an associated value for a given object using a given key. Association policy is retain. More...
 
(void) - setAssociatedObject:forKey:policy:
 Sets an associated value for a given object using a given key and association policy. More...
 
(void) - removeAssociatedObjectForKey:
 Removes all associations for a given object. Association policy is retain. More...
 
(void) - removeAssociatedObjectForKey:policy:
 Removes all associations for a given object. More...
 

Properties

NSString * className
 Class name of object. More...
 

Detailed Description

Method Documentation

- (id) associatedObjectForKey: (void *)  key

Returns the value associated with a given object for a given key.

Parameters
objectThe source object for the association.
keyThe 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
selA selector that identifies the method to invoke. The method should take 3 argument of type id.
obj1a parameter
obj2a parameter
obj3a 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
selA selector that identifies the method to invoke. The method should take 4 argument of type id.
obj1a parameter
obj2a parameter
obj3a parameter
obj4a 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
objectThe 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
objectThe source object for the association.
policyThe policy for the association. For possible values, see Associative Object Behaviors.

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
objectThe source object for the association.
keyThe key for the association.
valueThe 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
objectThe source object for the association.
keyThe key for the association.
valueThe value to associate with the key key for object. Pass nil to clear an existing association.
policyThe policy for the association. For possible values, see Associative Object Behaviors.
See also
objc_setAssociatedObject

Property Documentation

- (NSString*) className
readnonatomicassign

Class name of object.

See also
object_getClassName

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