• 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
Re: EditingContext/Sorting Problem SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EditingContext/Sorting Problem SOLVED


  • Subject: Re: EditingContext/Sorting Problem SOLVED
  • From: Ray Kiddy <email@hidden>
  • Date: Tue, 3 Apr 2007 08:57:05 -0700


On Apr 3, 2007, at 7:59 AM, David Avendasora wrote:

Okay. I've given the method a new name and it is working perfectly now. I'm assuming that this applies to filtering the array of related objects as well. Yes?

BTW, did I miss something in the documentation where it tells you not to override these? I have several WO books as well, and while the examples always show using a separate method, they don't say it's required.


I would suggest that you have an issue with separating your data and your presentation. WebObjects is very much built to use Model-View- Controller methodologies. If you think of your sorting problem as a display issue, easier solutions may present themselves. I think that this is why the EOSortOrdering functionality is so abstract. It makes it easy to not sort until display time.


Of course, there are things that are awkward about this also. A lot of them have to do with the fact that the code for working in this way is very concise in Objective C. Having translated this mechanism to java, one has to do more casting and "grunt work" than seems necessary.

- ray

Thanks again for the help everyone!

On Apr 3, 2007, at 9:51 AM, Ken Anderson wrote:

Use a separate method instead of overriding the existing method. There are assumptions made about the array returned via KVC, and you are breaking those assumptions by reordering an array that EOF thinks it owns.

_______________________________________________

_______________________________________________ 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: EditingContext/Sorting Problem SOLVED
      • From: Robert Walker <email@hidden>
References: 
 >EditingContext/Sorting Problem (From: David Avendasora <email@hidden>)
 >Re: EditingContext/Sorting Problem (From: Ken Anderson <email@hidden>)
 >Re: EditingContext/Sorting Problem SOLVED (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Reading NSData from a file
  • Next by Date: Re: Strange Error ???
  • Previous by thread: Re: EditingContext/Sorting Problem SOLVED
  • Next by thread: Re: EditingContext/Sorting Problem SOLVED
  • Index(es):
    • Date
    • Thread