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 in
--
>
> Message: 16
> Date: Thu, 25 Feb 2010 08:37:19 +1100
> From: Graham Cox
> Subject: Re: Application Menu - Preferences
>> In an NSDocument app where should or how should the Application Preferences
>> menu item be connected?
>
>
> In general, it should be
First, thanks to all for a great discussion / learning experience !
It seems cleaner to me to put the preferences window in a separate
NIB and have the app delegate create the window controller that
loads the separate NIB.
Is the approach I have taken ... works great !
On Feb 24, 2010, at
On 25/02/2010, at 11:28 AM, Gabriel Fernandez wrote:
> But if it doesn't exist, then why not bind Menu->Preferences to the
> Application Delegate's custom -( IBAction ) preferences: method?
Yep, that would work OK.
> I guess I don't know how to use First Responder to call the Application
>
On 25/02/2010, at 9:39 AM, Gabriel Fernandez wrote:
> Okay, I'm a skeptical person, so I have to ask why isn't there a
> "preferences" method in the FirstResponder IB object to begin with?
> But more to the point, how do I get a reference to the application delegate
> instance?
>
First Respon
On Feb 24, 2010, at 12:58, David Blanton wrote:
> What I was really getting at is how to set the target / action for when the
> item is selected. Here is what I did, so if this is way off base please let
> me know.
>
> I sub-classed NSMenuItem and set the Preferences menu item to this class.
On 25/02/2010, at 7:28 AM, David Blanton wrote:
> In an NSDocument app where should or how should the Application Preferences
> menu item be connected?
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
On Feb 24, 2010, at 3:58 PM, David Blanton wrote:
Good Tip. Thanks.
What I was really getting at is how to set the target / action for
when the item is selected. Here is what I did, so if this is way
off base please let me know.
I sub-classed NSMenuItem and set the Preferences menu ite
Good Tip. Thanks.
What I was really getting at is how to set the target / action for
when the item is selected. Here is what I did, so if this is way off
base please let me know.
I sub-classed NSMenuItem and set the Preferences menu item to this
class.
In the awakeFromNib I set the t
On Feb 24, 2010, at 3:28 PM, David Blanton wrote:
In an NSDocument app where should or how should the Application
Preferences menu item be connected?
This is kind of old, and its main focus is bindings, but it gives you
everything you need I think
http://developer.apple.com/cocoa/cocoabi
10 matches
Mail list logo