• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPopupButton Item to Create New Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSPopupButton Item to Create New Object (From: Jamie Phelps <email@hidden>)

  • Prev by Date: Re: zlib in 10.4 and 10.5
  • Next by Date: Re: Hillegass Book 3rd ed. ScreenShots differ?
  • Previous by thread: NSPopupButton Item to Create New Object
  • Next by thread: simple text compression in Cocoa
  • Index(es):
    • Date
    • Thread