Objective-C LanguageNSObject


Introduction

NSObject is the root class of Cocoa, however the Objective-C language itself does not define any root classes at all its define by Cocoa, Apple's Framework.This root class of most Objective-C class hierarchies, from which subclasses inherit a basic interface to the runtime system and the ability to behave as Objective-C objects.

This class have all basic property of Objective'C class object like:

self.

class (name of the class).

superclass (superclass of current class).

Syntax

  • self
  • superclass
  • init
  • alloc
  • new
  • isEqual
  • isKindOfClass
  • isMemberOfClass
  • description