Re: More stoopid questions...
Re: More stoopid questions...
- Subject: Re: More stoopid questions...
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 14 Nov 2010 11:27:04 -0500
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 - email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden