Download presentation
Presentation is loading. Please wait.
Published byDominic Hoover Modified over 8 years ago
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.