Is there an easy (WO or plain Java) way to derive the union of two
NSArrays?
If you mean as in a set then you should use NSSet...
((new NSSet(arrayOne)).setByUnioningSet(new NSSet
(arrayTwo))).allObjects()
...but if you mean actually a concatenation then...
arrayOne.arrayByAddingObjectsFromArray(arrayTwo)
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]