Re: Change value of NSNumber?
Re: Change value of NSNumber?
- Subject: Re: Change value of NSNumber?
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 5 Jul 2004 00:41:52 +0200
On dimanche, juillet 4, 2004, at 11:45 PM, Mike O'Connor wrote:
I have a number, which is an integer:
NSNumber* myInt= [NSNumber numberWithInt:123];
Can I change the value of this integer without creating a new NSNumber?
No.
I change the value held in myInt a lot and it seems a waste to assign
new NSNumbers all the time.
In that case, you might consider using an int.
_______________________________________________
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.