Re: Application termination
Re: Application termination
- Subject: Re: Application termination
- From: Marc Weil <email@hidden>
- Date: Mon, 11 Aug 2003 10:17:41 -0400
In Interface Builder, just connect the instance of the class that you want
to be the app's delegate, to the 'delegate' outlet of MainMenu's File Owner
(which is usually NSApplication).
Delegates are a very basic part of Cocoa, so if you don't know what these
are, perhaps you should get a good Cocoa book and read it, or find where in
Apple's documentation it is explained. Most complex classes in Cocoa require
delegates to be used to their full potential, so you should have a pretty
good idea as to what they are before you start using them, like in this
case.
Hope this helps.
- Marc Weil
On 8/11/03 10:09 AM, "April Gendill" <email@hidden> wrote:
>
Ok your the third person that has said this.. WHAT DOES IT MEAN?
>
there is only one class (other than main) in this application. I have
>
not renamed anything yet it is 100% straight off the File ->New
>
Document Based Application. so in the document lib, there is files
>
owner and first responder, other than the single window.
>
Should I be using the MainMenu nib for this delegation?
>
>
On Monday, August 11, 2003, at 06:32 AM, Marc Weil wrote:
>
>
> Also make sure that the class you are implementing
>
> applicationShouldTerminate: is set as the application's delegate. I
>
> believe
>
> that the app's delegate is the only object that is sent this message.
>
>
>
> - Marc Weil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.