NSArrayController setSortDescriptors error
NSArrayController setSortDescriptors error
- Subject: NSArrayController setSortDescriptors error
- From: Trygve Inda <email@hidden>
- Date: Mon, 17 Jun 2013 15:59:27 -0700
- Thread-topic: NSArrayController setSortDescriptors error
NSSortDescriptor* sortDesc;
sortDesc = [[NSSortDescriptor alloc] initWithKey:kMainColumnIdentifier
ascending:YES selector:@selector(compare:)];
NSArray* testArray = [NSArray arrayWithObject:sortDesc];
[myArrayController setSortDescriptors:testArray];
[sortDesc release];
On the line for setSortDescriptors:testArray, I get:
-[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
Any idea why it is doing this?
I have tried calling these prior to setting the sort Descriptiors:
[ myArrayController setSortDescriptors:nil];
[ myArrayController setSelectedObjects:nil];
[ myArrayController setSelectionIndex:0];
_______________________________________________
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