What I am trying to accomplish is displaying a menu (perhaps with 
NSPopUpButtonCell's performClickWithFrame method) after a user clicks on a 
sublass of NSButton and holds the left mouse button for >= 1 second.

Is anyone aware of any sample code doing this?

I imagine I will need to customize the mouseDown method of NSButton with a loop 
that checks to see if the mouse button is still down. However, I am uncertain 
how to determine this. I have seen NSEvent's pressedMouseButtons method, but it 
only became available with the 10.6 SDK and I need something that works with 
10.5.

I am also thinking that I may be taking the wrong approach, so any suggestions 
on what approach I should be taking would be appreciated.

Thank you._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to