• 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: Vance <email@hidden>
  • Date: Fri, 01 Feb 2008 13:55:22 -0800

I see a huge performance degradation with this method.

Does anyone know how is this implemented with drag/drop.

I see the application keeps receiving drag messages, even when the mouse pointer is outside the window, until the mouse up event fires.

Thanks!

Vance wrote:
j o a r wrote:

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


Cool, thank you! Looks like what I needed, I will give it a try now and see how it works.

I want it to provide a custom control on the system menu, that has one small icon and an arrow next to it. When the user clicks on the arrow, it changes between location that he is interested in monitoring at the moment. And when the user clicks on the icon, a custom window is shown with all the details. So it is just a much more convenient way to change locations. And of course this "arrow button" would be hidden/shown on the custom status bar as set in the preferences dialog to conserve space. Just want to make it as easy as possible to use and save clicks for some users.

Thanks!
Vance
_______________________________________________

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

_______________________________________________

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


References: 
 >How to "capture" the mouse (From: Vance <email@hidden>)
 >Re: How to "capture" the mouse (From: j o a r <email@hidden>)
 >Re: How to "capture" the mouse (From: Vance <email@hidden>)

  • Prev by Date: Re: What paradigm behind NSColor's drawing methods?
  • Next by Date: Re: What paradigm behind NSColor's drawing methods?
  • Previous by thread: Re: How to "capture" the mouse
  • Next by thread: Re: CoreData and NSOperation
  • Index(es):
    • Date
    • Thread