Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Init NSArray with c array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init NSArray with c array



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.