NSNull Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in OS X v10.0 and later.
Companion guide
Declared in
NSNull.h
Related sample code

Overview

The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values).

Adopted Protocols

NSCoding
NSCopying

Tasks

Obtaining an Instance

Class Methods

null

Returns the singleton instance of NSNull.

+ (NSNull *)null
Return Value

The singleton instance of NSNull.

Availability
  • Available in OS X v10.0 and later.
Declared In
NSNull.h