Re: Integers in an NSArray
Re: Integers in an NSArray
- Subject: Re: Integers in an NSArray
- From: George Domurot <email@hidden>
- Date: Thu, 27 Feb 2003 08:35:34 -0500
I believe this should work for you:
NSArray arrayOfIntegers = new NSArray(new Object[] {
new Integer(1), new Integer(2), new Integer(3), ..., new Integer(x)});
On Thursday, February 27, 2003, at 08:10 AM, Paul Stringer wrote:
Hi.... Anyone point me in the right way for creating an NSArray with
Integer values, im fine doing it with Strings but using for example
this
which is the closest I can get...
NSArray values = new NSArray(new int[]{1,0});
seems to nest the array object within a single object in the array, a
string
doesn9t do this...
Out of interest I cant quite get my head around int and Integer why
does
using Integer in this instance create incompatible types..
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.