• 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
Safe time to add accessory view to NSSavePanel in sandboxed app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Safe time to add accessory view to NSSavePanel in sandboxed app?
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: [PSA] native AppleScripting support for Swift
  • Next by Date: NSSecureCoding with containers (or, is NSArray lying?)
  • Previous by thread: Re: NSScrollView and NSTrackingArea woes
  • Next by thread: Re: Safe time to add accessory view to NSSavePanel in sandboxed app?
  • Index(es):
    • Date
    • Thread