• 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
custom menu for NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom menu for NSPopUpButton


  • Subject: custom menu for NSPopUpButton
  • From: Kurt Sutter <email@hidden>
  • Date: Tue, 6 Nov 2007 20:55:17 +0100

I have an NSPopUpButton in a window created with Interface Builder. I would like to attach a custom menu to that button. The custom menu is e.g. a two-dimensional color palette or some other non-standard, usually two dimensional arrangement of items for the user to select. Can anyone give me advice how to do that? I have read somewhere that, if you want a custom menu in Cocoa, you have to use a Carbon menu. This would come in handy because I already do have the carbon code for those custom menus. But I have no clue how to attach the Carbon menu to that button. Or is there some other recommended way to create a custom menu under Cocoa and attach it to a button?

Any advice is appreciated.

Best regards

Kurt Sutter

_______________________________________________

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


  • Follow-Ups:
    • Re: custom menu for NSPopUpButton
      • From: "Ken Ferry" <email@hidden>
  • Prev by Date: Re: [Leopard, workaround] Core Data migration for Tiger files
  • Next by Date: Re: [Leopard] Core Date migration lacks custom object classes
  • Previous by thread: Re: Need help with warning: passing argument 1 of ... from distinct Objective C type
  • Next by thread: Re: custom menu for NSPopUpButton
  • Index(es):
    • Date
    • Thread