• 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
NSMutableArray fill with unique values from NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray fill with unique values from NSArray


  • Subject: NSMutableArray fill with unique values from NSArray
  • From: Devraj Mukherjee <email@hidden>
  • Date: Thu, 20 Aug 2009 22:43:56 +1000

Hi all,

I have NSMutableArray (fixed length) that I wish to fill with unique
values at each index from a source NSArray (fixed length, greater than
the length of the target mutable array).

Realise that I can do this by writing a loop and check to see if a
value has bee pre-filled, the last indexes take a while to fill (for
obvious reasons of randomisation).

Is there are better way of doing this?

--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
_______________________________________________

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: NSMutableArray fill with unique values from NSArray
      • From: Mike Abdullah <email@hidden>
    • Re: NSMutableArray fill with unique values from NSArray
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: A simple DO situation - point me in the right direction!
  • Next by Date: Re: NSMutableArray fill with unique values from NSArray
  • Previous by thread: Re: NSAlternateKeyMask is not working
  • Next by thread: Re: NSMutableArray fill with unique values from NSArray
  • Index(es):
    • Date
    • Thread