diff options
author | Damiano Galassi <[email protected]> | 2017-02-24 09:26:08 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-02-24 09:26:08 +0100 |
commit | 2d6f89401df0eac82561d7fbc49312df1dcd3b7a (patch) | |
tree | 13992a7b56cbdfca8341555e8e80e5fd105842db | |
parent | d1333595bc9ffb3b2445bc7cf530ff6c86eceb38 (diff) |
MacGui: set a sort descriptor by default in the titles selection table.
-rw-r--r-- | macosx/HBTitleSelectionController.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBTitleSelectionController.m b/macosx/HBTitleSelectionController.m index 7ac625f3c..b0f3e088a 100644 --- a/macosx/HBTitleSelectionController.m +++ b/macosx/HBTitleSelectionController.m @@ -66,6 +66,12 @@ return self; } +- (void)windowDidLoad +{ + NSSortDescriptor *mySortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"title.index" ascending:YES]; + self.arrayController.sortDescriptors = [NSArray arrayWithObject:mySortDescriptor]; +} + - (IBAction)deselectAll:(id)sender { for (HBTitleSelection *title in self.titles) |