• 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
NSColorPanel magnifying glass behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPanel magnifying glass behavior


  • Subject: NSColorPanel magnifying glass behavior
  • From: Mike McNamara <email@hidden>
  • Date: Wed, 15 Aug 2007 15:42:43 -0600


Hello all -

I'm attempting to understand and partially replicate the behavior displayed by the magnifying glass you see in an NSColorPanel. I note that when you click it, the magnifying glass appears and the app otherwise ignores most events until you mouseDown/Up and select a color.

My first thought was to simply create a screen sized transparent window -- which I did! Unfortunately there doesn't seem to be a way to override the default behavior of ignoring mouseDown events in a transparent window. That seemed to be the obvious choice for registering a click anywhere on screen while maintaining focus on my app. My next thought was to simply monitor [NSApp currentEvent], but again events occurring in a transparent window are ignored. Given the funky "cursor" I thought perhaps the NSColorPanel magnifying glass was literally moving and updating a window beneath the current cursor position?

Any ideas or insight would be appreciated!  Thanks!




_______________________________________________

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


  • Prev by Date: fitting an NSBezierPath to a Rect
  • Next by Date: changeFont in custom view in custom IB palette!
  • Previous by thread: Re: fitting an NSBezierPath to a Rect
  • Next by thread: changeFont in custom view in custom IB palette!
  • Index(es):
    • Date
    • Thread