Yup, that's the one... cheers.

J.


On 1-Sep-08, at 8:48 AM, Greg Titus wrote:

Hi James,

It sounds like you want -subarrayWithRange:

Hope this helps,
        - Greg

On Sep 1, 2008, at 8:37 AM, James Maxwell wrote:

Hello All,

Is there an obj-C equivalent to Java's System.arraycopy() which will allow me to easily copy a segment of an NSArray into a new array?

If so, a one-liner example would be very much appreciated.

I looked at -getObjects:range:, but I'm not sure if this is the right thing since it returns void... Do I provide an array to use as "aBuffer"?

J.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/greg%40omnigroup.com

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to