Re: [NSApp setDelegate]
Re: [NSApp setDelegate]
- Subject: Re: [NSApp setDelegate]
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 05 Jun 2001 20:30:09 -0400
on 6/5/01 3:49 PM, David Spooner at email@hidden wrote:
>
> I'm trying very hard to work my head around creating a delegate for
>
my > application, but am having some trouble. I know what delegates do,
>
and I > know why I need them. What I don't know is how to instantiate
>
them. > NSApplication has a method [NSApp setDelegate] which (I would
>
assume) > would be called either in the NSApplication's init: method,
>
or from > another already instantiated class.
>
You can set the application delegate in IB by control-dragging a
>
connection from the file's owner object (which, for the main nib file,
>
represents the application object) to your delegate object (which you
>
must have instantiated) , and then selecting the 'delegate' outlet in
>
the inspector.
>
dave
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes