Please point me in the right direction for contextual menus
Please point me in the right direction for contextual menus
- Subject: Please point me in the right direction for contextual menus
- From: email@hidden
- Date: Thu, 30 Aug 2001 22:38:47 -0400
Hi, all,
I'd like to implement contextual menus on the contents of an
NSOutlineView; the contents of the menu (or at least the highlighted
state of the items in it) need to vary depending on which cell (i.e.,
item/column) is underneath the cursor when the menu is brought up.
I've looked at adding a menu to my NSOutlineView, but it's not clear how
to tell where the cursor is when the menu is brought up; will event
notifications for the view tell me what I need to know?
The other possibility I've considered is attaching a menu to the
NSCell's used to display the outline view contents. Near as I can
figure, NSOutlineView only uses one cell per column, so I would still
need to determine which item/row of the outline view is under the cursor
when the menu is invoked.
Thanks in advance for any pointers.
Doug K;