Re: Handling NSMenuItem Selections
Re: Handling NSMenuItem Selections
- Subject: Re: Handling NSMenuItem Selections
- From: Glenn Andreas <email@hidden>
- Date: Mon, 10 May 2004 15:38:45 -0500
To expand on my previous question, I'm trying to hold the mouse down
on my selection and drag the image associated with the selected
NSMenuItem onto an NSView. Hence why I need a way to figure out
which menu item was selected, and I also need a way to stop the menu
selection process after the mouse clicks down, but before it clicks
up.
The item selection doesn't happen until after the mouse is released
(click the mouse on the menu title, drag down until you get the item
you want, and then let go of the mouse - and only then is the item
selected and it's action sent). And with keyboard navigation, the
mouse may not even be pressed at all.
If it can't be done, oh well. I might just allow the user to select
from the list and then click in the NSView to drop it. Either way, I
still need to know the selected menu item.
Why not just make a floating palette with an NSMatrix that you can
drag items/objects/images from and drop on your canvas (I'm assuming
you are trying to make something that behaves similar to the way you
build a UI in IB - if you're not, never mind).
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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.