Re: how to set the NSApp delegate?
Re: how to set the NSApp delegate?
- Subject: Re: how to set the NSApp delegate?
- From: email@hidden
- Date: Mon, 13 May 2002 13:52:37 -0700
On Mon, May 13, 2002 at 09:53:43AM -0700, email@hidden wrote:
>
You'd make a subclass of NSApplication, tell PB that your subclass is the main class (in the target settings), then call "[self setDelegate: xxx]" in your initialization code.
>
However, if you're subclassing NSApplication, you probably don't need a delegate, too. The point of the delegate is so you don't have to subclass NSApplication.
thanks. an easier way to do this is [NSApp setDelegate: self] in an awakeFromNib function.
>
>
Glen Fisher
--prashanth
_______________________________________________
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.