Re: Hexadecimal addition
Re: Hexadecimal addition
- Subject: Re: Hexadecimal addition
- From: Keary Suska <email@hidden>
- Date: Tue, 06 Nov 2007 15:20:30 -0700
- Thread-topic: Hexadecimal addition
on 11/6/07 2:05 PM, email@hidden purportedly said:
> It's normal integer addition you want to do -- the hex
> is just how it's displayed. You can get an integer out
> of a string with NSFormatter's scanHexInt:, and you
> can create a hex string representation of an integer
> with [NSString stringWithFormat:@"%x", anInteger]
> (though you might consider using an NSFormatter
> subclass to format the data for output rather than
> storing it that way, just as a thought).
Just to correct this, -scanHexInt: is a function of NSScanner--NSFormatter
has no such methods.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden