• 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: Init NSArray with c array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init NSArray with c array


  • Subject: Re: Init NSArray with c array
  • From: Nat! <email@hidden>
  • Date: Tue, 23 Dec 2003 16:47:57 +0100

Am 23.12.2003 um 03:12 schrieb Jay Rimalrick:

Is there a way to convert a c array of ints:

int anArray[5];

to a NSArray without looping through each value?


No because you can't store ints in an NSArray, you have to wrap them into NSNumber objects first.

Ciao
Nat!

I act professionally, when I get paid for it. - Unknown
_______________________________________________
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: 
 >Init NSArray with c array (From: "Jay Rimalrick" <email@hidden>)

  • Prev by Date: Re: Generate Random numbers between 0 and 4
  • Next by Date: Re: Database Application with Obj-C -> Valentina Database
  • Previous by thread: Init NSArray with c array
  • Next by thread: Generate Random numbers between 0 and 4
  • Index(es):
    • Date
    • Thread