News for hackers. Stuff that matters.
Re:Reflections on Objective-C by chc on Tuesday February 15, 2011 @02:16PM (#2222737)
This is what I always try to explain to people. Objective-C is a slightly above-average core language (it's a minimal set of extensions to ISO C) with no standard library to speak of. Cocoa is an awesome library written in Objective-C. Any enjoyment you get from Objective-C programming (and pretty much anything you accomplish) is probably thanks to Cocoa, not Objective-C itself.

To illustrate how minimal Objective-C is: There isn't even a standard root class. It includes an Object class, but using it is not mandatory, and only one class used in any Cocoa app is derived from it. There also isn't a "root class" protocol. Due to the lack of a standard root class, outside the safety of Cocoa, there isn't even a standard way to ask an object what class it is or what selectors is responds to.

Re:Reflections on Objective-C by Zev on Wednesday February 16, 2011 @01:11AM (#2225299)
..outside the safety of Cocoa, there isn't even a standard way to ask an object what class it is or what selectors is responds to.

Yes, there is. The Objective-C run time lets you do all of this. It is in C and not Objective-C. But, NSObject is barely more than a thin wrapper for these functions, anyway.