API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPNull Class Reference

An object representation of nil. More...

#import <CPNull.h>

+ Inheritance diagram for CPNull:

Instance Methods

(void) - encodeWithCoder:
 
(id) - initWithCoder:
 
(BOOL) - isEqual:
 
(id) - valueForKey:
 

Class Methods

(CPNull+ null
 

Detailed Description

An object representation of nil.

This class is used as an object representation of nil. This is handy when a collection only accepts objects as values, but you would like a nil representation in there.

Definition at line 2 of file CPNull.h.

Method Documentation

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Writes out nothing to the specified coder.

Parameters
aCoderthe coder to which nothing will be written

Definition at line 83 of file CPNull.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Returns CPNull null.

Parameters
aCoderthe coder from which to do nothing
Returns
[CPNull null]

Definition at line 73 of file CPNull.j.

- (BOOL) isEqual: (id)  anObject
implementation

Definition at line 60 of file CPNull.j.

+ (CPNull) null
implementation

Returns the singleton instance of the CPNull object. While CPNull and nil should be interpreted as the same, they are not equal ('==').

Definition at line 52 of file CPNull.j.

- (id) valueForKey: (CPString aKey
implementation

Provided by category CPNull(CPKeyValueCoding).

Definition at line 293 of file CPKeyValueCoding.j.


The documentation for this class was generated from the following files: