Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-06 Thread Mike Abdullah
> On 30 Mar 2015, at 18:00, Steve Mills wrote: > > On Mar 30, 2015, at 11:37:46, Mike Abdullah 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 b

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Steve Mills
On Apr 1, 2015, at 11:14:43, Kyle Sluder wrote: > > … 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,

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Kyle Sluder
On Mon, Mar 30, 2015, at 11:00 AM, Steve Mills wrote: > On Mar 30, 2015, at 11:37:46, Mike Abdullah > 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, w

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Karl Moskowski
> On Apr 1, 2015, at 12:01 PM, Steve Mills wrote: > > On Apr 1, 2015, at 09:49:29, Karl Moskowski wrote: >> >> A few months back, we ran into a similar problem with accessory views in >> sandboxed apps, though it was with NSSavePanel. The Open & Cancel buttons >> weren’t clickable, but the k

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Steve Mills
On Apr 1, 2015, at 09:49:29, Karl Moskowski wrote: > > A few months back, we ran into a similar problem with accessory views in > sandboxed apps, though it was with NSSavePanel. The Open & Cancel buttons > weren’t clickable, but the keyboard shortcuts (esc & enter) worked. Well, it's been repo

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Karl Moskowski
> On Mar 30, 2015, at 11:24 AM, sjmi...@mac.com wrote: > > Yes. Great googly moogly, that's it! I made a test project; clicking white > space in the checkbox label works. I turned on sandboxing for that project, > and it no longer works. Hello, radar://20346986. A few months back, we ran into

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Steve Mills
On Mar 30, 2015, at 11:37:46, Mike Abdullah 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 w

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Mike Abdullah
> On 30 Mar 2015, at 17:34, Steve Mills wrote: > > On Mar 30, 2015, at 11:14:17, Uli Kusterer > wrote: >> >> Makes sense considering that sandboxed apps don't run their own open panel. >> Instead the accessory view appears to be hosted in a borderless window that >> gets attached (at the Wi

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Steve Mills
On Mar 30, 2015, at 11:14:17, Uli Kusterer wrote: > > Makes sense considering that sandboxed apps don't run their own open panel. > Instead the accessory view appears to be hosted in a borderless window that > gets attached (at the Window Server level, I'd presume) to the actual open > panel t

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Mike Abdullah
> On 30 Mar 2015, at 17:24, Steve Mills wrote: > > On Mar 30, 2015, at 04:09:13, Mike Abdullah wrote: >> >> I think I’ve been seeing the same thing, and not been able to quite put my >> figure on it. Is your app sandboxed? > > Yes. Great googly moogly, that's it! I made a test project; click

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Steve Mills
On Mar 30, 2015, at 04:09:13, Mike Abdullah wrote: > > I think I’ve been seeing the same thing, and not been able to quite put my > figure on it. Is your app sandboxed? Yes. Great googly moogly, that's it! I made a test project; clicking white space in the checkbox label works. I turned on san

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Uli Kusterer
> On 30 Mar 2015, at 11:09, Mike Abdullah wrote: > > >> On 30 Mar 2015, at 08:19, Steve Mills wrote: >> >> OK, this is really weird. I just added an accessoryView to an NSOpenPanel. >> The view contains only a checkbox style NSButton. When testing it, it seemed >> like the clicks on this bu

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Steve Mills
On Mar 30, 2015, at 08:11:03, Marek Hrušovský wrote: > > AddAssetAccessoryView -> I think it should be named as a controller. > You kick off view loading and the view is being retained by nsopenpanel. > However, I can't see that you retain the NIB you load. Because the panel takes and then rel

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Marek Hrušovský
AddAssetAccessoryView -> I think it should be named as a controller. You kick off view loading and the view is being retained by nsopenpanel. However, I can't see that you retain the NIB you load. Marek. On Mon, Mar 30, 2015 at 8:09 PM, Mike Abdullah wrote: > > > On 30 Mar 2015, at 08:19, Steve

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-03-30 Thread Mike Abdullah
> On 30 Mar 2015, at 08:19, Steve Mills wrote: > > OK, this is really weird. I just added an accessoryView to an NSOpenPanel. > The view contains only a checkbox style NSButton. When testing it, it seemed > like the clicks on this button's title didn't always take. It appears that > the only