• 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: NSMutableDictionary -> NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary -> NSData


  • Subject: Re: NSMutableDictionary -> NSData
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 24 Jun 2002 17:52:15 -0700

Send the dictionary a -description message. The result is a NSString formatted as a property list.

-jcr

On Monday, June 24, 2002, at 05:43 PM, email@hidden wrote:

Ok.. In trying to work with NSFileWrapper's, it appears that it basically only works with
content types of NSData..

However, I would like to store the contents of most of the file's in the new plist format,
which is easy to do via NSDictionary.. (writeToFile: xxx just does it ) ...

So... How can I use NSFileWrapper to store the file easily in "plist" format
if the information is in a dictionary??

What this entails I think is how to get NSDictionary into NSData format and vice-versa
on the other way in..

Or this means that I am doing something totally wrong with NSFileWrapper and need
direction.. :-)

Thanks!

-Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSMutableDictionary -> NSData (From: email@hidden)

  • Prev by Date: Re: Mutable class problems
  • Next by Date: Re: Mutable class problems
  • Previous by thread: NSMutableDictionary -> NSData
  • Next by thread: How to get notified on PPP connect/disconnect?
  • Index(es):
    • Date
    • Thread