• 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
Re: NSDictionary crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary crash


  • Subject: Re: NSDictionary crash
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 25 Jul 2009 13:21:56 -0700

On Jul 25, 2009, at 12:59 PM, "email@hidden" <email@hidden > wrote:
Sorry for being ignorant, but how do I ensure the safety of the file?
I don't see anything about this in the NSData API.

Look at other APIs in the system. The point is to wind up with an NSData; this doesn't mean the API you use has to be in the NSData class.


Hmm, OK. I suppose I could go for Apple Events when iTunes is running
and only read the xml data when it's not. Shame about the speed,
though.

Also not a safe option; other Apple apps can access the XML file, includeing CoreServices (for the media picker in the Open panel). Unfortunately we don't know how they do it and therefore can't be guaranteed that they won't also break if you have a lock on the database file.


Apple Events will take care of launching iTunes for you. Its launch time is much less of a burden now than it was before the update a few months ago.

--Kyle Sluder

_______________________________________________

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: NSDictionary crash
      • From: "email@hidden" <email@hidden>
References: 
 >Re: NSDictionary crash (From: Kyle Sluder <email@hidden>)
 >Re: NSDictionary crash (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: [iPhone] Why can't a UITextField be its own delegate?
  • Next by Date: Re: NSDictionary crash
  • Previous by thread: Re: NSDictionary crash
  • Next by thread: Re: NSDictionary crash
  • Index(es):
    • Date
    • Thread