OBJECTIVE C summary

OBJECTIVE C summary

- Primitive
Basic C primitive type are available in objective C
char/bool/int/long int/float/double/
BOOL defines yes/true/1 and no/false/0
 
- Additional Class
NSInteger, NSUInteger, NSFloat, NSNumber
for 64bit and 32bit CPU, the size of long, int may different, objective has additional class for these problem

-Special
id: id is a pointer which points to a object derived from NSObject.îî
nil: nil == NULL in c. nil means a NSObject point to a null object/ nothing
Nil: null class
SEL: is type from selector, define a method name. 
NSString(@), BOOL (yes, no)

[OOP]
@interface: define the class, method declaration 
@implementation: detail the interface

uppercast/downcast

[Memery]
Stack
Heap
@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

你可能感兴趣的:(OBJECTIVE C summary)