Having involved in C++ projects for more than ten years, it is really a big question for me that why Objective-C has been used as the base programming language on iOS. Taking a look at Objective-C spec, it seems that it is more dynamic than C++ in binding variables to their types, as a result it is not more efficient than C++. Can someone tell me what the philosophy behind using this language is?
Share
There is no philosophy per sé, Apple bought Next Computer and their Operating System NeXTSTEP, which provided an objective-c API.
Mac OS X is based on on the NeXTSTEP system, and in turn, iOS is based on OS X, so it’s a natural progression. This also explains why a whole bunch of classes start with NS.