• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change value of NSNumber?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: Deleting duplicates in NSMutableArray
  • Next by Date: Re: Deleting duplicates in NSMutableArray
  • Previous by thread: Change value of NSNumber?
  • Next by thread: NSArrayController
  • Index(es):
    • Date
    • Thread