• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to detect clicks outside of modal window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect clicks outside of modal window?


  • Subject: Re: How to detect clicks outside of modal window?
  • From: Scott Ribe <email@hidden>
  • Date: Wed, 02 Nov 2011 17:40:26 -0600

On Nov 2, 2011, at 5:29 PM, Vojtěch Meluzín wrote:

> 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.

Between this and your previous post about no window title, it sounds like maybe you should be looking at a floating panel instead of a modal dialog (with some custom event handling).

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

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

  • Follow-Ups:
    • Re: How to detect clicks outside of modal window?
      • From: Vojtěch Meluzín <email@hidden>
References: 
 >How to detect clicks outside of modal window? (From: Vojtěch Meluzín <email@hidden>)

  • Prev by Date: How to detect clicks outside of modal window?
  • Next by Date: Re: How to detect clicks outside of modal window?
  • Previous by thread: How to detect clicks outside of modal window?
  • Next by thread: Re: How to detect clicks outside of modal window?
  • Index(es):
    • Date
    • Thread