objective c - AppDelegate file missing in Xcode 3.1? -


i starting learn xcode , objective-c , reading 3 different books on topic currently. of these books refer file called "appdelegate" (my_first_projectappdelegate.m, my_first_projectappdelegate.h) said "created project" (i creating "cocoa application"). these files not present when create new project. seem not 1 having problem (see http://pragprog.com/titles/dscpq/errata ).

is there more information appdelegate? current practice on how deal missing appdelegate? using xcode version 3.1.4 on mac osx leopard.

appdelegate nothing more common nsobject class needed connections in mainmenu.xib. can recreate own:

  1. create class, name appdelegate
  2. open mainmenu.xib , add nsobject object object palette
  3. in object inspector's identity tab (the last one) set object's class appdelegate (you should autocomplete)
  4. ctrl+drag application object newly created appdelegate object , choose "delegate" opened panel.

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -