Anyone can tell me when we can create a class without subclassing NSObject?
Asked
Active
Viewed 557 times
-1
-
*With*: access to the ObjC runtime. *Without*: no access. – vadian Jan 22 '18 at 07:42
1 Answers
0
"
NSObject
is the root class of most Objective-C class hierarchies. ThroughNSObject
, objects inherit a basic interface to the runtime system and the ability to behave as Objective-C objects."
As this would suggest, you need to subclass NSObject
for types introduced in your code whenever instances of that type need to behave like an Objective-C object (or the class itself, in some rarer cases).

Priya
- 735
- 5
- 10

Bilal Awan
- 4,730
- 1
- 8
- 15