• 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: array segment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array segment


  • Subject: Re: array segment
  • From: Greg Titus <email@hidden>
  • Date: Mon, 1 Sep 2008 08:48:04 -0700

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 (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: array segment
      • From: James Maxwell <email@hidden>
References: 
 >array segment (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: array segment
  • Next by Date: Re: array segment
  • Previous by thread: Re: array segment
  • Next by thread: Re: array segment
  • Index(es):
    • Date
    • Thread