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

Sandboxing + NSSavePanel's accessoryView


  • Subject: Sandboxing + NSSavePanel's accessoryView
  • From: "Rimas M." <email@hidden>
  • Date: Mon, 10 Oct 2011 13:17:44 +0300

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

  • Follow-Ups:
    • Re: Sandboxing + NSSavePanel's accessoryView
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: Give a menu keyboard focus – in code
  • Next by Date: Re: Give a menu keyboard focus – in code
  • Previous by thread: Re: Xcode 3 to 4 - CoreData in IB
  • Next by thread: Re: Sandboxing + NSSavePanel's accessoryView
  • Index(es):
    • Date
    • Thread