1 / 6

Objective-C: Intro

Objective-C: Intro. Michelle Alexander COMS E6998 2/4/2013. File Types . Header Files . h , . hpp (mixed Obj-c and C++) Class Files . m , .mm (mixed Obj-c and C++) Property List . plist. Header Files. Class Definition Base Class Delegates implemented Private Variables

butch
Télécharger la présentation

Objective-C: Intro

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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 *)sandInt:(int)i; Return type function name Variables - (int) calcSomethingWithInt:(int) iandFloat:(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.

More Related