Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class hierarchy of NSObject

Tags:

I trying to understand class hierarchy. What are the sub classes of NSObject. Is there any graphical representation of the hierarchy?

like image 297
mind Avatar asked Jul 24 '10 00:07

mind


People also ask

What is the hierarchy of UIButton?

NSObject -> UIResponder ->UIView -> UiControl ->UIButton.

What does NS stand for in NSObject?

The Foundation Kit, or just Foundation for short, is an Objective-C framework in the OpenStep specification. It provides basic classes such as wrapper classes and data structure classes. This framework uses the prefix NS (for NeXTSTEP). It is also part of Cocoa and of the Swift standard library.

Do Swift classes inherit from NSObject?

You don't have to inherit from NSObject in Swift, but you did in Objective-C and in fact there are some behaviors you can only have if you do inherit from it. More on that in project 12, but for now just make sure you inherit from NSObject .

What is a NSObject protocol?

This protocol is imported into Swift with the name NSObjectProtocol . An object that conforms to this protocol can be considered a first-class object. Such an object can be asked about its: Class, and the place of its class in the inheritance hierarchy.


1 Answers

You can explore the hierarchy in the hierarchical view of the Symbols navigator in a Xcode project. Be sure to de-select the document icon below to display all symbols and not just those defined in your project.

enter image description here

like image 168
atineoSE Avatar answered Oct 30 '22 05:10

atineoSE