• 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: NSOpenPanel accessoryView clicks must hit pixels to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel accessoryView clicks must hit pixels to work


  • Subject: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • From: Steve Mills <email@hidden>
  • Date: Mon, 30 Mar 2015 11:34:02 -0500

On Mar 30, 2015, at 11:14:17, Uli Kusterer <email@hidden> 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 that runs in the PowerBox process. So it'd probably just let through any clicks in transparent areas to PowerBox in the underlying window.

Jeez, what a horrible hack. But then, it is sandboxing we're talking about, which is by design an ugly hack. :)

> A workaround would probably be to use a plain NSBox as your accessory view and fill it with a solid color (e.g. an opaque version of the color that a standard-appearance NSBox uses to fill itself). of course that'd run the risk of looking a bit ugly if Apple changes the color used for that. I don't see an obvious color for NSBox contents in  NSColor.h.

That seems to work, but I'm not going to fix Apple's ugly hack by adding an uglier hack.

--
Steve Mills
Drummer, Mac geek


_______________________________________________

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


  • Follow-Ups:
    • Re: NSOpenPanel accessoryView clicks must hit pixels to work
      • From: Mike Abdullah <email@hidden>
References: 
 >NSOpenPanel accessoryView clicks must hit pixels to work (From: Steve Mills <email@hidden>)
 >Re: NSOpenPanel accessoryView clicks must hit pixels to work (From: Mike Abdullah <email@hidden>)
 >Re: NSOpenPanel accessoryView clicks must hit pixels to work (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • Next by Date: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • Previous by thread: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • Next by thread: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • Index(es):
    • Date
    • Thread