Life Cycle of a Cocoa Application

By: Aaron Hillegass Viewed: 153245 times  Printer Friendly Format    


Let's briefly discuss the chronology of an application: When the process is started, it runs the NSApplicationMain function, which creates an instance of NSApplication. The application object reads the main nib file and unarchives the objects inside. The objects are all sent the message awakeFromNib. Then the application object checks for events.

This lifecylce of a typical cocoa application is depicted in the below diagram.



Most Viewed Articles (in Cocoa )

Latest Articles (in Cocoa)

Comment on this tutorial