A singleton object used to represent null values in collection objects that don’t allow nil values.


class NSNull : NSObject


NSNull is “toll-free bridged” with its Core Foundation counterpart, CFNull. See Toll-Free Bridging for more information on toll-free bridging.

See Also

Special Semantic Values

let NSNotFound: Int

A value indicating that a requested item couldn’t be found or doesn’t exist.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software