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

How to "capture" the mouse


  • Subject: How to "capture" the mouse
  • From: Vance <email@hidden>
  • Date: Fri, 01 Feb 2008 11:09:34 -0800

I am developing a systemStatusBar bound application

that uses a Custom View [systemStatusBar setView: myView]

myView implements mouseDown and all it does is shows a window just bellow the status bar

That all works perfectly.

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.


I am looking for something like capturing the mouse on windows.

Thank you!

_______________________________________________

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: j o a r <email@hidden>
  • Prev by Date: Re: memory management issue?
  • Next by Date: Re: CoreData and NSOperation
  • Previous by thread: NSMutableArray access from other class
  • Next by thread: Re: How to "capture" the mouse
  • Index(es):
    • Date
    • Thread