10. Init Equals to CONSTRUCTOR in C++ -(id)initWithName : (NSString *) newN ame{ self=[super init]; if(self){ self.name=newName; } return self; } -(id)init{ self=[super init]; if(self){ } return self; }
11.
12. self Keyword self.name= @”MyName” It is equivalent to: [self setName:@”MyName”]; name= @”MyName” Assignment to iVar name. getter setter NSString *tempName=nil; tempName=self.name; It is equivalent to: tempName=[self name];
13.
14.
15.
16.
17. Cocoa/Cocoa Touch Cocoa is an application environment for both the Mac OS X operating system and iOS, the operating system used on Multi-Touch devices such as iPhone, iPad, and iPod touch. It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment. Cocoa in the architecture of iOS