• 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 "capture" the mouse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to "capture" the mouse


  • Subject: Re: How to "capture" the mouse
  • From: j o a r <email@hidden>
  • Date: Fri, 1 Feb 2008 11:32:19 -0800


On Feb 1, 2008, at 11:09 AM, Vance wrote:

Now, when the user clicks anywhere outside the status bar, the application needs to Hide the window.
On what even do I hide the window? mouseDown or any other mouse related NSResponder event does not get called when it occurs outside of the view client area.


Why do you need to open a window, why not just use a regular menu with a custom view? One obvious answer to that question might be that you need to support versions of Mac OS X prior to Leopard - Is that the case?

On 10.4 and later you can probably use the CGEventTap API to find the information that you're looking for.

j o a r


_______________________________________________

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 "capture" the mouse
      • From: Vance <email@hidden>
References: 
 >How to "capture" the mouse (From: Vance <email@hidden>)

  • Prev by Date: Re: CoreData and NSOperation
  • Next by Date: Re: memory management issue?
  • Previous by thread: How to "capture" the mouse
  • Next by thread: Re: How to "capture" the mouse
  • Index(es):
    • Date
    • Thread