• 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: Sandboxing + NSSavePanel's accessoryView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sandboxing + NSSavePanel's accessoryView


  • Subject: Re: Sandboxing + NSSavePanel's accessoryView
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 10 Oct 2011 11:01:35 -0700

Hi Rimas,
It sounds like a bug in sandboxing in AppKit. Can you log a bug on this? And (if possible, but not required) include a sample application that reproduces it.

A work around is to just always set the accessoryView.

thanks,
corbin

On Oct 10, 2011, at 3:17 AM, Rimas M. wrote:

> Hello,
>
> I am trying to enable sandboxing in my app, and I am dealing with a very
> strange behavior. I am not sure if this is a bug of Lion/Sandboxing or I
> have missed something in documentation.
>
> In save panel I am using a custom accessoryView which is set in "-
> (BOOL)prepareSavePanel:(NSSavePanel *)savePanel". I am setting setting
> accessory view to the real one only if savePanel's "- (BOOL)isExpanded"
> returns YES. Otherwise I am setting it to nil.
> To handle save panel's expansion I am using "- (void)panel:(id)sender
> willExpand:(BOOL)expanding" from NSOpenSavePanelDelegate. If expanding ==
> YES, I am setting the real accessory view, and nil if expanding==NO.
>
> That worked very well on Snow Leopard. It even works well on Lion without
> sandboxing. But if sandboxing is enabled, it does not work. When save panel
> is displayed and I am trying to expand it, expands and collapses back. It is
> impossible to expand it.
>
> Log has showed, that I am getting - (void)panel:(id)sender
> willExpand:(BOOL)expanding with expanding==YES and the second one
> with expanding==NO. At the moment I have no clue what is going on.
>
> Any thoughts about this behavior would be very appreciate.
>
> Best Regards,
>
> Rimas M.
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Sandboxing + NSSavePanel's accessoryView (From: "Rimas M." <email@hidden>)

  • Prev by Date: Keeping grayscale image grayscale
  • Next by Date: Re: NSTreeController with bindings and core data - still an issue?
  • Previous by thread: Sandboxing + NSSavePanel's accessoryView
  • Next by thread: Scripting Bridge Finder
  • Index(es):
    • Date
    • Thread