Re: Integer to String
Re: Integer to String
- Subject: Re: Integer to String
- From: David Remahl <email@hidden>
- Date: Mon, 7 Jul 2003 09:14:43 +0200
On mendag 7 juli 2003, at 08.53AM, John Lombardo wrote:
Just a quickie...
Is there a way to set a string in a NSTextField control sing an integer
without having to use NSNumber to take in a stringValue and spit out an
intValue?
OR is there a C function I've forgotten about that does this
efficiently?
Cheers,
john
I'm not quite sure I understand what you want...But I think it is one
of these solutions you are looking for:
int someNumber = -123;
[myTextField setIntValue:someNumber];
someNumber = [myTextField intValue];
/ Sincerely, David Remahl
_______________________________________________
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.