• 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
Stuck with NSSortDescriptor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stuck with NSSortDescriptor


  • Subject: Stuck with NSSortDescriptor
  • From: Micha Fuhrmann <email@hidden>
  • Date: Wed, 2 May 2007 18:44:31 +0200

Hi there,

I've got an NSArrayController pointing to NSSortDescriptor in a custom class using the Model Key Path in the IN Bindings.


Here's the sort descriptor:

alphaSortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"artist" ascending:YES selector:@selector(caseInsensitiveCompare:)];


The same NSArrayController has its Model Key Path's contentArray set as:

@distinctUnionOfObjects.artist

and is working fine without  the descriptor.

However as soon as I link the NSSortDescriptor I get the following error message:

[NSSortDescriptor count]: selector not recognized [self = 0x396fd0]
An uncaught exception was raised
[NSSortDescriptor count]: selector not recognized [self = 0x396fd0]
Uncaught exception: <NSInvalidArgumentException> *** - [NSSortDescriptor count]: selector not recognized [self = 0x396fd0]



Any help greatly appreciated.

Micha
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Stuck with NSSortDescriptor
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: NSRulerView background color
  • Next by Date: Size of substring
  • Previous by thread: App works with NSZombieEnabled, crashes without
  • Next by thread: Re: Stuck with NSSortDescriptor
  • Index(es):
    • Date
    • Thread