Why do we ever need to inherit from NSObject?

Not just for Objective-C Programmers

Steven Curtis
4 min readFeb 13, 2022
Photo by Namroud Gorguis on Unsplash

You might want to inherit from NSObject. What does that mean, and why would you ever want to?

This article and accompanying video seeks to explain how.

Prerequisites:

Terminology

NSObject: The 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

Objective-C: An Object Oriented language

Subclassing: This is the act of basing a new class on an existing class

NSObject

NSObject is the root class of most Objective-C hierarchies, from which subclasses inherit an interface to the…

--

--