Many cocoa base classes, such as NSString and NSNumber, are implemented in the base and "free bridges" for objective-c classes. The core of the kernel is the C (non ObjC) API, and source is available as part of Darwinβs open source project.
So, to see how NSString or NSNumber are implemented under the hood, follow the link above and see CFString and CFNumber respectively (you will need an Apple developer account, but registration is free).
source share