How to detect clicks outside of modal window?
How to detect clicks outside of modal window?
- Subject: How to detect clicks outside of modal window?
- From: Vojtěch Meluzín <email@hidden>
- Date: Thu, 03 Nov 2011 00:29:57 +0100
Hi,
I'm using modal windows using runModalForWindow and I'd like to implement
probably a slightly untypical thing - when a user clicks outside of the
window, it gets closed, like he clicked cancel button or something. The
idea is that this would simulate a popup menu. I know it's not exactly
typical, but my plugins/apps would benefit from it a lot and I cannot use
normal menu classes, because it's a multiplatform GUI system, which just
works different way.
So, which is the best way to do that?
Thanks in advance.
Vojtech
_______________________________________________
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