Re: NSPopupButton and dialog
Re: NSPopupButton and dialog
- Subject: Re: NSPopupButton and dialog
- From: Michael Watson <email@hidden>
- Date: Wed, 29 Nov 2006 21:48:28 -0500
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSMenuItem_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSMenuItem/setAction:
see also
http://developer.apple.com/documentation/Cocoa/Conceptual/
ActionMessages/index.html#//apple_ref/doc/uid/10000067i
On 29 Nov, 2006, at 21:23, Marc Wan wrote:
hello!
I want to have an NSPopupButton show a dialog, sort of like in
Safari's
preferences dialog where you can select a folder using such a
control. Now,
the question I have is what the "proper" way of going about this
would be.
I'd like to create a subclassed DirectoryPopupButton that I can
just plug
into various projects and not have to have some plumbing code in my
controller class.
So, what would be the proper way for my NSPopupButton subclass to
learn
that a menu item has been selected? I suspect there is some basic
event
processing thing i'm missing here .
xiexie!
marc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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