Stef,
You can also use the sortedArrayUsingSelector method. Here is an
example of sorting an array of Java strings.
// assume myArray (of type NSArray) already exists
mySelector = new NSSelector("compare", new Class[]
{String.class});
System.out.println("My array is " + myArray);
myArray = myArray.sortedArrayUsingSelector(mySelector);
System.out.println("My array after sorting is " + myArray);
Nader
Begin forwarded message:
From: Stefan Kuypers <[EMAIL PROTECTED]>
Date: 1999-03-25 00:23:37 -0800
To: Multiple recipients of list <[EMAIL PROTECTED]>
Subject: Sorting an NSMutableArray from within Java
X-Listprocessor-version: 6.0 -- ListProcessor by Anastasios Kotsikonas
Originator: [EMAIL PROTECTED]
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-Comment: To unsubscribe,follow directions at
http://www.omnigroup.com/MailArchive/
Hi there,
Is there anyone who knows how to use the sorting methods of a
NSMutableArray
from within Java?
Thanks,
Stef