• 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: Associating object with NSPopupMenu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Associating object with NSPopupMenu items


  • Subject: Re: Associating object with NSPopupMenu items
  • From: Amar Sagoo <email@hidden>
  • Date: Mon, 25 Oct 2004 23:20:14 +0100

Have a look at NSMenu's delegate methods.
I haven't used this myself, but it looks like you can effectively make the delegate a data source by implementing methods like numberOfItemsInMenu: and menu:updateItem:atIndex:shouldCancel:

Amar

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Associating object with NSPopupMenu items (From: Daniel Donaldson <email@hidden>)

  • Prev by Date: Aligning animation and songs
  • Next by Date: NSBox Colored Background
  • Previous by thread: Associating object with NSPopupMenu items
  • Next by thread: Aligning animation and songs
  • Index(es):
    • Date
    • Thread