summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-02-24 09:26:08 +0100
committerDamiano Galassi <[email protected]>2017-02-24 09:26:08 +0100
commit2d6f89401df0eac82561d7fbc49312df1dcd3b7a (patch)
tree13992a7b56cbdfca8341555e8e80e5fd105842db
parentd1333595bc9ffb3b2445bc7cf530ff6c86eceb38 (diff)
MacGui: set a sort descriptor by default in the titles selection table.
-rw-r--r--macosx/HBTitleSelectionController.m6
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)