• 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
Accessing elements of an Array using a flat Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Accessing elements of an Array using a flat Key
      • From: Jonathan Rochkind <email@hidden>
References: 
 >Re: Access bindings at runtime (From: David Griffith <email@hidden>)
 >Re: Access bindings at runtime (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WOForms
  • Next by Date: searches
  • Previous by thread: Re: Access bindings at runtime
  • Next by thread: Re: Accessing elements of an Array using a flat Key
  • Index(es):
    • Date
    • Thread