Life Cycle of a Cocoa Application

By: Aaron Hillegass  

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.




Archived Comments


Most Viewed Articles (in Cocoa )

Latest Articles (in Cocoa)

Comment on this tutorial