Re: NSDictionary crash
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