• 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 writeToFile without going to disk?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary writeToFile without going to disk?


  • Subject: Re: NSDictionary writeToFile without going to disk?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Sun, 19 Mar 2006 10:54:30 -0800


On Mar 19, 2006, at 10:31, Tito Ciuro wrote:

Unfortunately, NSData is returned. I was hoping for NSString because I need to search the contents. The writeToFile/ dictionaryWithContentsOfFile works fine... I just wish there was an equivalent method to do that without having to go to disk...

I think you can use NSPropertyListSerialization to do that; use the XML format, then use -[NSString initWithData:encoding:] with NSUTF8StringEncoding to convert the NSData to a string.


--
Adam


_______________________________________________ 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
References: 
 >NSDictionary writeToFile without going to disk? (From: Tito Ciuro <email@hidden>)
 >Re: NSDictionary writeToFile without going to disk? (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Re: NSDictionary writeToFile without going to disk?
  • Next by Date: Re: NSDictionary writeToFile without going to disk?
  • Previous by thread: [SOLVED] NSDictionary writeToFile without going to disk?
  • Next by thread: String diff?
  • Index(es):
    • Date
    • Thread