• 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: NSSortDescriptor not working with array of custom classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSortDescriptor not working with array of custom classes


  • Subject: Re: NSSortDescriptor not working with array of custom classes
  • From: Shawn Erickson <email@hidden>
  • Date: Sun, 4 Nov 2007 15:05:11 -0800


On Nov 4, 2007, at 2:50 PM, Ken Tozier wrote:


On Oct 19, 2007, at 2:26 PM, Jim Correia wrote:

Have you been able to isolate the behavior down to a standalone sample?

I find that to be useful because it shows me my bug, or gives me something I can dump directly into radar. If you do that, send me the sample too, because I'm curious what is going on here :-)


Well I ran into this problem again with another class and after several hours of head scratching, it appears that when initializing sort descriptors you *must* use the actual name of any property you want to sort on. You can't use accessors to those properties.

Can you post a complete code sample that shows the problem you are reporting. We are having to guess at what your class(es) involved really look like. You can simplify it down to some thing that shows the issue you having.


Anyway you are doing things that I shouldn't have to do...

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSSortDescriptor not working with array of custom classes
      • From: Ken Tozier <email@hidden>
References: 
 >Re: NSSortDescriptor not working with array of custom classes (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: I'm losing my memory (GC & NSImageView)
  • Next by Date: Re: FYI - installer packages are the preferred deployment method now
  • Previous by thread: Re: NSSortDescriptor not working with array of custom classes
  • Next by thread: Re: NSSortDescriptor not working with array of custom classes
  • Index(es):
    • Date
    • Thread