• 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: Integers in an NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Integers in an NSArray (From: Paul Stringer <email@hidden>)

  • Prev by Date: Re: Join many to many problem
  • Next by Date: RE: Integers in an NSArray
  • Previous by thread: Integers in an NSArray
  • Next by thread: RE: Integers in an NSArray
  • Index(es):
    • Date
    • Thread