Programming Tutorials

Life Cycle of a Cocoa Application

By: Aaron Hillegass in Cocoa Tutorials on 2010-09-03  

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.






Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Cocoa )

Latest Articles (in Cocoa)