OC is a superset of C, extended from C, with object-oriented features such as classes, messages, and single inheritance.
Part of C:
Data type:
Short,int,long,float,double,char,pointer,struct
Common methods:
ReadLine ()
Atoi ()
sizeof ()
malloc ()
Part of OC:
Receiver:classnameorobject
Selector:method
Message delivery is achieved through [receiver selector],
Eg:nsdate *now = [NSDate Date];
-:instance method, Entity methods, depends on an instance of a class;
+:class method, class methods, Java-like static methods.
Instance variable start with an Understore:such as _name.
Multi-parameter method invocation:
[Receiver Selector:argoneval Argtwoname:argtwoval argthreename:argthreeval ... ]
ID: Eg:id delegate when unsure what type of object it is pointing to;
Note the ID type of the variable is preceded by an * number.
This article is from the "Phoenixisland" blog, make sure to keep this source http://phoenix2012.blog.51cto.com/1799358/1430957