• 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: Dictionary won't write to disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 23:30:35 -0400


On Jun 8, 2005, at 10:51 PM, Dave DeLong wrote:
OK, that's good to know.  However, when I do:

NSURL *temp = [NSURL fileURLWithPath:[@"~/Desktop/Songs.xml" stringByExpandingTildeInPath]];
if ([myDictionary writeToURL:temp atomically:YES] == YES) {
NSLog(@"worked");
} else {
NSLog(@"failed");
}


it always outputs "failed".

Any other ideas?

Only brute force to narrow down the problem. Make sure it works with an empty dictionary. Try writing to a dictionary. Try removing half the dictionary entries. Try removing all but one of the dictionary entries. Try to find a dictionary that works and a slightly different dictionary that doesn't work, and study the difference between the two.


Is it possible the dictionary or one of its subobjects contains something that the -writeTo methods don't like, i.e., something that is not an NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary?

--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


  • Follow-Ups:
    • Re: Dictionary won't write to disk
      • From: Dave DeLong <email@hidden>
References: 
 >Dictionary won't write to disk (From: Dave DeLong <email@hidden>)
 >Re: Dictionary won't write to disk (From: Andy Lee <email@hidden>)
 >Re: Dictionary won't write to disk (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Dictionary won't write to disk
  • Next by Date: Re: Dictionary won't write to disk
  • Previous by thread: Re: Dictionary won't write to disk
  • Next by thread: Re: Dictionary won't write to disk
  • Index(es):
    • Date
    • Thread