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

NSObject — Mac OS X 10.0

Synopsis

NSObject is the root class of the Cocoa frameworks. This class defines the base functionality that enables objects to work with the Objective-C runtime.

image with no caption

@interface NSObject <NSObject>
                                  // Initializers
   - (id)init;
                                  // Class Methods
   + (id)alloc;
   + (id)allocWithZone:(NSZone *)zone;
   + (Class)class;
   + (BOOL)conformsToProtocol:(Protocol *)protocol;
   + (id)copyWithZone:(NSZone *)zone;
   + (NSString *)description;
   + (void)initialize;
   + (IMP)instanceMethodForSelector:(SEL)aSelector;
   + (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector;
   + (BOOL)instancesRespondToSelector:(SEL)aSelector;
   + (BOOL)isSubclassOfClass:(Class)aClass;
   + (void)load;
   + (id)mutableCopyWithZone:(NSZone *)zone;
   + (id)new;
   + (void)poseAsClass:(Class)aClass;
   + (void)setVersion:(int)aVersion;
   + (Class)superclass;
   + (int)version;
                                  // Instance Methods
   - (void)URL:(NSURL *)sender 
                                 resourceDataDidBecomeAvailable:(NSData *)newBytes;
   - (void)URL:(NSURL *)sender 
                                 resourceDidFailLoadingWithReason:(NSString *)reason;
   - (void)URLResourceDidCancelLoading:(NSURL *)sender;
   - (void)URLResourceDidFinishLoading:(NSURL *)sender;
   - (id)awakeAfterUsingCoder:(NSCoder *)aDecoder;
   - (unsigned long)classCode;
   - (Class)classForArchiver;
   - (Class)classForCoder;
   - (Class)classForKeyedArchiver;
   - (Class)classForPortCoder;
 - (NSString ...

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