• 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: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)


  • Subject: Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
  • From: Andrei Tchijov <email@hidden>
  • Date: Tue, 14 Mar 2006 18:06:40 -0500

Glen, thanks a lot. Once again, the answer is way too easy (once you know the answer :-) ).

Andrei

On Mar 14, 2006, at 5:51 PM, Glen Simmons wrote:

On Mar 14, 2006, at 3:35 PM, Andrei Tchijov wrote:

I have a command line tool which produce output "compatible" with "[NSDictionary writeToFile:atomically:]". I need to read this output in my GUI and re-create the dictionary. How I can do it without resorting to storing result of the tool into temporary file?

Thank you in advance, your replies will be highly appreciated.

Andrei Tchijov

-[NSString propertyList] should do it. I assume you can get the output into an NSString*.


HTH,
Glen


_______________________________________________ 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: 
 >Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either) (From: Andrei Tchijov <email@hidden>)
 >Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either) (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: fetch request with compound predicate doesn't sort properly
  • Next by Date: Re: fetch request with compound predicate doesn't sort properly
  • Previous by thread: Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
  • Next by thread: Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
  • Index(es):
    • Date
    • Thread