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

Re: Converting NSDictionary to NSData


  • Subject: Re: Converting NSDictionary to NSData
  • From: Hasan Diwan <email@hidden>
  • Date: Sun, 24 Aug 2003 17:20:35 +0200

NSData *foo=[NSArchiver archivedDataWithRootObject:myDict]
The only requirement for this is that the class conform to the NSCoding protocol.
On Sunday, Aug 24, 2003, at 16:01 Europe/Copenhagen, Jesus De Meyer wrote:

What's the best way to convert an NS(Mutable)Dictionary to NSData?
Would this work:

[NSData dataWithBytes:myDict length:[myDict count]]
_______________________________________________
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.

Hasan Diwan {http://ibn.com/~hdiwan}
OpenPGP Fingerprint: 275D 0E84 550C D92A 4A56 732C 8528 2579 E6E9 4842
_______________________________________________
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: 
 >Converting NSDictionary to NSData (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Converting NSDictionary to NSData
  • Next by Date: Re: TableView that displays images and text?
  • Previous by thread: Converting NSDictionary to NSData
  • Next by thread: Re: TableView that displays images and text?
  • Index(es):
    • Date
    • Thread