Re: Converting NSDictionary to NSData
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.