Safe time to add accessory view to NSSavePanel in sandboxed app?
Safe time to add accessory view to NSSavePanel in sandboxed app?
- Subject: Safe time to add accessory view to NSSavePanel in sandboxed app?
- From: Graham Cox <email@hidden>
- Date: Thu, 16 Jul 2015 08:53:34 +1000
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 (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