• 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
NSNumber increment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNumber increment


  • Subject: NSNumber increment
  • From: Jeremy Rotsztain <email@hidden>
  • Date: Sun, 8 Jul 2007 01:27:03 -0400


What's the syntax for incrementing a NSumber stored in an array?

[[colorsListed objectAtIndex:22] objectAtIndex:1];

Do I have to replace that number with the object?

[colorsListed replaceObjectAtIndex:22 withObject:[[[colorsListed objectAtIndex:22] objectAtIndex:1] intValue + 1]];

Thanks,

Jeremy
_______________________________________________

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


  • Follow-Ups:
    • Re: NSNumber increment
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: creating unit tests
  • Next by Date: Re: NSImage representations
  • Previous by thread: Re: creating unit tests
  • Next by thread: Re: NSNumber increment
  • Index(es):
    • Date
    • Thread