Accessing elements of an Array using a flat Key
Accessing elements of an Array using a flat Key
- Subject: Accessing elements of an Array using a flat Key
- From: Alex Eiser <email@hidden>
- Date: Sun, 15 Feb 2004 02:29:45 -0500
Hi,
This is probably a dead end, but I wanted to check anyway.
I am working on an application to handle course enrollments and marks.
One of the key features needs to be to sort a class by marks achieved.
Out database structure is done so that each course can have a varying
number of mark items. Since we want to be able to sort the class by any
mark item this presents a problem.
In most cases I perform my sorting by using
"EOSortOrdering.sortArrayUsingKeyOrderArray(enrollList,
sortOrderings);" were sortOrderings is defined using
"EOSortOrdering.sortOrderingWithKey(aKey, aSelector);" The problem is
I need to be able to specify a key which specifies which entry of the
mark items is to be used.
Since their are many markItems for a single student I can't just use
the relationship.
Is there any way to specify a specific item of a 1-many relationship?
Or do i need to perform the sorting by hand?
Thanks,
Alex
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.