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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]