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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
