- Declared in:
- NSObject+Prototypes.h
@group Language Extensions
Adds a class method to the class, using the specified block. The types for the method are inferred from the block.
The block must take an object (self) as the first argument. Any subsequent arguments are the explicit arguments to the method. The _cmd argument is not available for methods added in this way.
Adds an instance method to the class, using the specified block. The types for the method are inferred from the block.
The block must take an object (self) as the first argument. Any subsequent arguments are the explicit arguments to the method. The _cmd argument is not available for methods added in this way.
Adds a method to the receiver, using the specified block. The types for the method are inferred from the block.
The block must take an object (self) as the first argument. Any subsequent arguments are the explicit arguments to the method. The _cmd argument is not available for methods added in this way.
Returns a clone of the object. The clone will inherit all methods and associated objects. To copy instance variables, you must override this method.
Returns the prototype for this object, or
nil
if this object does not have one.
Adds the specified method to this instance. Objects modified in this way get a hidden dictionary for non-indexed instance variables, allowing them to use KVC to set arbitrary objects on self.
Does the same as valueForKey:, except when this object is a prototype and a block closure is associated with the supplied key. The block closure is then returned without being invoked.