O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSNull — Mac OS X 10.0

Synopsis

This simple class represents a NULL value as an object. The utility of this is that an instance of NSNull can be added to any of the Foundation collections, which don’t provide for the inclusion of nil. To create an instance of NSNull, simply use the class method null.

image with no caption

@interface NSNull : NSObject
                                  // Convenience Constructors
   + (NSNull *)null;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required