Stuck with NSSortDescriptor
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