NSColorPanel magnifying glass behavior
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