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


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

  • Prev by Date: Dictionary won't write to disk
  • Next by Date: Re: Universal Binaries, x86 and compatibility...
  • Previous by thread: Dictionary won't write to disk
  • Next by thread: Re: Dictionary won't write to disk
  • Index(es):
    • Date
    • Thread