Re: Keeping open menu after mouse up

2011-10-30 Thread Ryan Joseph
Thanks for tip but the menu still closes on mouse up. I wonder what the difference is. The event from [NSApp currentEvent] is showing as a LMouseDown which is good but the menu still takes the mouse up and closes even though you would think it should behave like a normal menu click. On Oct 29,

Re: Keeping open menu after mouse up

2011-10-28 Thread Graham Cox
I have a similar case, and it works OK. What I do is on mouseDown, start a timer. When that fires, it grabs [NSApp currentEvent] and passes that as the event to the popUpContextMenu: method. The menu tracks as expected. The only kink was that because this was being done within a button cell's

Keeping open menu after mouse up

2011-10-28 Thread Ryan Joseph
I have a menu that I popup using popUpContextMenu:withEvent:forView: from a mouse down event but after a delay (like a dual-state click and hold button). The problem is when I release the mouse button the menu is closed forcing the user to hold the mouse down the entire time they're navigating t