Re: NSOpenPanel accessoryView clicks must hit pixels to work
Re: NSOpenPanel accessoryView clicks must hit pixels to work
- Subject: Re: NSOpenPanel accessoryView clicks must hit pixels to work
- From: Kyle Sluder <email@hidden>
- Date: Wed, 01 Apr 2015 10:14:43 -0600
On Mon, Mar 30, 2015, at 11:00 AM, Steve Mills wrote:
> On Mar 30, 2015, at 11:37:46, Mike Abdullah <email@hidden>
> wrote:
> >
> > Slightly less ugly idea, how about filling the background of your accessory view with something like 1% alpha? Would that be enough to direct clicks to the right place, without being visible to the human eye?
>
> 1% didn't work. I had to work my way up to 5% before it was deemed
> clickable. I ended up with [NSColor colorWithWhite:0.91 alpha:0.05],
> which exactly matches this particular background.
… on your current setup. Depending on whether the CPU or GPU is used for
compositing the open panel's contents and/or your own views, and what
color profile is assigned to the screen on which these windows believe
themselves to be hosted, you may wind up with accumulated
off-by-least-significant-bit errors in the final color components.
I'd recommend enclosing all your controls in an NSBox or other
opaque-enough superview.
> Hello, radar://20346986.
Thanks for filing.
--Kyle Sluder
_______________________________________________
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