In a sandboxed app, I do:

NSSavePanel* sp = [NSSavePanel savePanel];

[sp setAccessoryView:some_view];



This works 99% of the time, but sometimes it just crashes. This seems to occur 
when the app has just been activated after using a different app, and this save 
panel is requested within a few seconds of the activation, though that’s a bit 
of a woolly description because the circumstances make it difficult to 
reproduce reliably.

Has anyone run into this?

Is there a better way or time to set the accessory view so any race condition 
(as this might imply) has had time to sort itself out?


—Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to