Re: NSPopupButton Item to Create New Object
Re: NSPopupButton Item to Create New Object
- Subject: Re: NSPopupButton Item to Create New Object
- From: Keary Suska <email@hidden>
- Date: Sun, 08 Jun 2008 10:11:19 -0600
- Thread-topic: NSPopupButton Item to Create New Object
6/7/08 10:21 PM, also sprach email@hidden:
> I have an NSPopupButton bound to an NSArrayController to provide
> options for the user to select from. What I would like to do is have
> one option (probably the first item) in the popup for the user to
> select that would allow them to create a new object if it doesn't yet
> exist.
>
> Is this possible with NSPopupButton or should I just include a button
> to display a panel for adding the new item?
Since the items in a popup are NSMenuItems, you should be able to set the
action of an item...
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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