On Nov 14, 2010, at 10:40 AM, Matt Neuburg wrote:

> We all did all those steps manually for years and years, on every single 
> application we wrote. Finally Apple realized they could save us some steps 
> and wrote it into the template. Since the purpose of the provided instance is 
> to function as the app's delegate, Delegate appears in the name.


And to carry Matt's story a little further, it is still up to you to decide 
what more you want to put in the MainMenu nib file. The template already 
includes File's Owner, First Responder, the application object, a menubar with 
menus, and a window. I just started a new application from this template, and 
the first thing I did was to add a "MainWindowController" object to the nib 
file, designate a new MainWindowController class as its owner, and connect up 
various outlets so they could all say hello to each other. I am now putting 
code to control the window into the MainWindowController class in order to 
maintain a certain degree of encapsulation, although I also send a couple of 
messages to the window from the appDelegate for convenience.

--

Bill Cheeseman - b...@cheeseman.name

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to