Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Change value of NSNumber?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change value of NSNumber?

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?


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
Do not post admin requests to the list. They will be ignored.

 >Change value of NSNumber? (From: "Mike O'Connor" <email@hidden>)

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.