• 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: NSMutableArrays and Integers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArrays and Integers


  • Subject: Re: NSMutableArrays and Integers
  • From: Seth Delackner <email@hidden>
  • Date: Mon, 17 Mar 2003 00:25:24 -0800

On Sunday, March 16, 2003, at 11:26 PM, Hussain Bandukwala wrote:
Is it possible to add integer values to an NSMutableArray object? I in

I could be wrong, but what you want is to use NSNumber to wrap your numeric primitives in objects.

-(void)insert:(int)number into:(NSMutableArray*) a{
[a addObject: [NSNumber numberWithInt: number];
}

Might work. Written in email client at midnight, so beware.
_______________________________________________
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: 
 >NSMutableArrays and Integers (From: "Hussain Bandukwala" <email@hidden>)

  • Prev by Date: Re: NSMutableArrays and Integers
  • Next by Date: Re: web services?
  • Previous by thread: Re: NSMutableArrays and Integers
  • Next by thread: Java vs C/Objective-C performance question
  • Index(es):
    • Date
    • Thread