Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopupButton and dialog



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:
http://lists.apple.com/mailman/options/cocoa-dev/mikey-san% 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSPopupButton and dialog (From: "Marc Wan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.