• 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: Strange bug (?) with NSArrayController sortDescriptors and SQLite !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite !


  • Subject: Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite !
  • From: Scott Ellsworth <email@hidden>
  • Date: Wed, 7 Sep 2005 10:53:39 -0700


On Sep 7, 2005, at 2:05 AM, Eric Morand wrote:

Thanks mmalc !

Once again, you solved a mistery !


The problem is that I love the explanation but I don't feel easy with the solution : "You may need to subclass NSArrayController so you can have it not pass the sort descriptors to the database and do the sorting after your data has been fetched instead."

If I recall correctly, this is not terribly difficult. I looked into it for almost exactly the same reason a while ago, and it did not look too bad.


I have come to the conclusion that knowing how and when to subclass NSArrayController and how to create object transformers both have a lot of bennies - they let you transform data in sensible ways by mapping indices and mapping objects.

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


References: 
 >Strange bug (?) with NSArrayController sortDescriptors and SQLite ! (From: Eric Morand <email@hidden>)
 >Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite ! (From: mmalcolm crawford <email@hidden>)
 >Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite ! (From: Eric Morand <email@hidden>)

  • Prev by Date: Weird Objective-C observation
  • Next by Date: totally lost
  • Previous by thread: Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite !
  • Next by thread: nstimer not firing?
  • Index(es):
    • Date
    • Thread