Re: Dictionary won't write to disk
Re: Dictionary won't write to disk
- Subject: Re: Dictionary won't write to disk
- From: Andy Lee <email@hidden>
- Date: Wed, 8 Jun 2005 22:07:57 -0400
On Jun 8, 2005, at 9:49 PM, Dave DeLong wrote:
if ([myDictionary writeToFile:[@"~/Desktop/Songs.xml"
stringByExpandingTildeInPath] atomically:NO]) {}
The docs for that method say: "If path contains a tilde (~)
character, you must expand it with stringByExpandingTildeInPath
before invoking this method."
Unfortunately, nothing is happening! I've tried many different
things like
Did you look at the return value of the method call? If it returned
YES, this would have been more puzzling, but a return value of NO
might have led you to look at the docs to see what might cause the
method to return NO. (Yes, I know this is 20/20 hindsight...)
It might be worth filing a bug request for a version of the method
that returns an NSError like NSString's writeToFile method does.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden