How can I detect a mouse click outside a child window on Leopard?
How can I detect a mouse click outside a child window on Leopard?
- Subject: How can I detect a mouse click outside a child window on Leopard?
- From: Michael Crawford <email@hidden>
- Date: Tue, 14 Feb 2012 08:22:15 -0500
I've implemented something like NSPopover on Leopard (10.5). I would like this popover to disappear if the user clicks anywhere outside of the popover but I'm not sure how to do this. Theoretically, I should be able to make the child window modal but I'm not sure that would help. Also, I assume there is a way to capture the mouse from a given window but I've never done that before either.
Suggestions?
-Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden