Re: NSMutableArrays and Integers
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.