Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSNumber onto a NSData Object ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber onto a NSData Object ?



theData = [[aNumber stringValue] dataUsingEncoding:NSUnicodeStringEncoding];

though since it's just numbers you could probable use NSASCIIStringEncoding instead of NSUnicodeStringEncoding.

On Sunday, June 23, 2002, at 01:25 PM, email@hidden wrote:

Newbie question.


What is the best way to get the string form of an NSNumber onto NSData ?

Thanks
_______________________________________________
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.
_______________________________________________
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: 
 >NSNumber onto a NSData Object ? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.