• 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
A custom way to sort EOs by key ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A custom way to sort EOs by key ?


  • Subject: A custom way to sort EOs by key ?
  • From: Fabrice Pipart <email@hidden>
  • Date: Thu, 10 May 2007 17:21:43 +0200

Hi Dear List !

I have been looking for way to sort my EOs in a custom way for hours and did not find any solution.
I wondered if someone had a solution for this.
I only want to do that sorting in memory with EOSortOrdering .sortOrderingWithKey(String key, NSSelector selector) 

Let's say I have a Screen EO
Screen has a name
Let's say I have EOs with names "Screen1", "Screen2", "Screen11", "Screen22", "Screen3"
WebObjects using EOSortOrdering.CompareAscending allows me to an array of those EOs sorted like this :
Screen1
Screen11
Screen2
Screen22
Screen3

Wouldn't it be great to be able to sort them like this?
Screen1
Screen2
Screen3
Screen11
Screen22

So I tried to understand how to subclass something, create a corresponding NSSelector like are EOSortOrdering.CompareAscending and such... no luck :-(

Does anyone have an idea of how this could be done???


Regards


www.easyshadow.com


International Corporate Consulting

Palais de la Scala

1 avenue Henri Dunant

Suite 1155

MC - 98000 Monaco


Skype: fabrice.pipart

Tel.  +377 97 98 21 04 (direct)

Fax. +377 97 70 88 07



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: A custom way to sort EOs by key ?
      • From: Ken Anderson <email@hidden>
  • Prev by Date: NSTimestampFormatter and languages
  • Next by Date: Fwd: NSTimestampFormatter and languages
  • Previous by thread: Fwd: NSTimestampFormatter and languages
  • Next by thread: Re: A custom way to sort EOs by key ?
  • Index(es):
    • Date
    • Thread