Sorting by index
parent
67b2ada211
commit
fe716e1e04
|
@ -311,6 +311,16 @@
|
||||||
[a release];
|
[a release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)setSortDescriptors:(NSArray *)sortDescriptors
|
||||||
|
{
|
||||||
|
//Cheap hack so the index column isn't sorted
|
||||||
|
NSLog(@"KEY: %@", [[sortDescriptors objectAtIndex:0] key]);
|
||||||
|
if ([[[sortDescriptors objectAtIndex:0] key] caseInsensitiveCompare:@"displayIndex"] != NSOrderedSame)
|
||||||
|
{
|
||||||
|
[super setSortDescriptors:sortDescriptors];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void)sortByPath
|
- (void)sortByPath
|
||||||
{
|
{
|
||||||
NSSortDescriptor *s = [[NSSortDescriptor alloc] initWithKey:@"filename" ascending:YES selector:@selector(compare:)];
|
NSSortDescriptor *s = [[NSSortDescriptor alloc] initWithKey:@"filename" ascending:YES selector:@selector(compare:)];
|
||||||
|
|
Loading…
Reference in New Issue