NSData to long
NSData to long
- Subject: NSData to long
- From: David Blanton <email@hidden>
- Date: Mon, 07 Apr 2003 19:50:45 -0600
NSAppleEventDescriptor * aDescriptor = [theDescriptor descriptorAtIndex:i];
theData = [aDescriptor data];
NSLog(@"theData %@",theData); yields : theData <00000024 >
I want to convert the NSData object <00000024> to an NSString that would be
"36"
NSString * str = [[NSNumber numberWithLong:foo] stringValue];
Would work if I could make <00000024> into a long. So how does one get a
long value from an NSData object?
Still puzzled.
_______________________________________________
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.