• 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: Contextual menus : better idea?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contextual menus : better idea?


  • Subject: Re: Contextual menus : better idea?
  • From: Scott Stevenson <email@hidden>
  • Date: Mon, 11 Dec 2006 02:17:03 -0800


On Dec 6, 2006, at 1:19 AM, Stephane wrote:

My current implementation is not too bad. I subclassed NSTableView and changed - (NSMenu*) menuForEvent: (NSEvent*)event; so that it can requests the NSMenu from its delegate. This lets me return a specific menu for one item.

Question:

Is there a more "official" way of doing this?

Nope, that's fine.

I assume you're using -rowAtPoint: to do this.

    - Scott
_______________________________________________

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:
This email sent to email@hidden


References: 
 >Contextual menus : better idea? (From: Stephane <email@hidden>)

  • Prev by Date: Re: Crash on NIB Load?
  • Next by Date: Re: Core Data and unknown types
  • Previous by thread: Contextual menus : better idea?
  • Next by thread: Passing a SEL into KVC
  • Index(es):
    • Date
    • Thread