• 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: NSView menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView menu


  • Subject: Re: NSView menu
  • From: Jason Kim <email@hidden>
  • Date: Wed, 14 Jul 2004 11:32:34 -0700

Rick Bischoff wrote:
I have a custom NSView that has a contextual menu. I need to somehow get the point where the user
initiated the menu-- I don't see any thing in NSMenuItem that has this information. Is it possible in Cocoa?

How about another angle: your NSView should already receive this information in its menuForEvent: method; the contextual menu appears as a result of this action.

(I confess I've never used a contextual menu with a custom NSView, but I found this in Apple's menu/pop-up documentation.)

-Jason
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSView menu (From: Rick Bischoff <email@hidden>)

  • Prev by Date: Re: NSTable Newbie Issues
  • Next by Date: Hiding NSComboBoxCells In An NSOutlineView
  • Previous by thread: NSView menu
  • Next by thread: Hiding NSComboBoxCells In An NSOutlineView
  • Index(es):
    • Date
    • Thread