Re: Application Menu - Preferences
Re: Application Menu - Preferences
- Subject: Re: Application Menu - Preferences
- From: Gabriel Fernandez <email@hidden>
- Date: Wed, 24 Feb 2010 19:28:38 -0500
On Feb 24, 2010, at 5:58 PM, Graham Cox wrote:
>
> The application delegate is a real object, but you have to create it by adding it to the nib and connecting it up to the 'delegate' outlet of the application. Typically you do that by subclassing NSObject and so drag an NSObject icon into the nib and changing its class to the name of your subclass.
>
I meant how do you get a reference to the delegate in First Responder? You said before:
"In general, it should be connected to First Responder (in fact nil) to an action of your choice. Then that action can be implemented where it makes most sense, which is likely to be the application delegate."
Which means a call chain Menu->Preferences->First Responder->Application Delegate-> preferences panel, right? Okay, okay so First Responder isn't technically in the call chain, because it's a place-holder. But if it doesn't exist, then why not bind Menu->Preferences to the Application Delegate's custom -( IBAction ) preferences: method?
I guess I don't know how to use First Responder to call the Application Delegate, or instances of any other object.
Thanks,
Gabe_______________________________________________
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