Objective C - NSObject
NSObject is the rich class which serves as the base for most of the GNUStep/NextSTEP/Cocoa foundation classes. It offers a number of methods that are very important for Cocoa/NextSTEP/GNUStep programmers to be aware of.
- Root class for most foundation classes
-
Allocation/Initialization
+alloc(rarely overridden)+allocWithZone(rarely overridden)-init(typically overridden by subclasses)+new(convenience method that calls[[self alloc] init])- (and more)
-
Memory managment
-retain-release-autorelease
-
Inheritance/etc. testing
+conformsToProtocol:+isSubclassOfClass:- (and many more)