Presentation is loading. Please wait.

Presentation is loading. Please wait.

Objective-C: Intro Michelle Alexander COMS E6998 2/4/2013.

Similar presentations


Presentation on theme: "Objective-C: Intro Michelle Alexander COMS E6998 2/4/2013."— Presentation transcript:

1 Objective-C: Intro Michelle Alexander COMS E6998 2/4/2013

2 File Types Header Files –.h,.hpp (mixed Obj-c and C++) Class Files –.m,.mm (mixed Obj-c and C++) Property List –.plist

3 Header Files Class Definition  Base Class  Delegates implemented  Private Variables  Public Variables  Functions

4 Function Declaration - (void) doSomethingWithString:(NSString *)s andInt:(int)i; Return typefunction nameVariables - (int) calcSomethingWithInt:(int) i andFloat:(float)f; + – before Function Declartion: + (void) aClassMethod; - (void) anInstanceMethod;

5 Class Files Init function AutoRelease Dealloc Object Counters – Alloc  Dealloc – Retain  Release

6 Class Files (cont) Function Definitions Comments – NSLog(@””) Instance Methods Class Methods (+) – Don’t need instance of class.


Download ppt "Objective-C: Intro Michelle Alexander COMS E6998 2/4/2013."

Similar presentations


Ads by Google