summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authorritsuka <[email protected]>2009-01-14 14:42:44 +0000
committerritsuka <[email protected]>2009-01-14 14:42:44 +0000
commit6f39576e4a18520b1036d997b0bafd632a9e1da3 (patch)
tree74e609a2f0520c453de6ce88218107535207156d /macosx/Controller.mm
parent7ef1e7438c00ab280d78fa144d45014c805ff5f4 (diff)
MacGui; save the expanded/collapsed state for folders in the presets drawer.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2084 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 408ca253c..b0891342a 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -103,6 +103,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fChapterTable setDataSource:fChapterTitlesDelegate];
[fChapterTable setDelegate:fChapterTitlesDelegate];
+ [fPresetsOutlineView setAutosaveName:@"Presets View"];
+ [fPresetsOutlineView setAutosaveExpandedItems:YES];
+
/* Call UpdateUI every 1/2 sec */
[[NSRunLoop currentRunLoop] addTimer:[NSTimer
scheduledTimerWithTimeInterval:0.5 target:self
@@ -5314,6 +5317,15 @@ return YES;
}
}
+- (id)outlineView:(NSOutlineView *)outlineView itemForPersistentObject:(id)object
+{
+ return [NSKeyedUnarchiver unarchiveObjectWithData:object];
+}
+- (id)outlineView:(NSOutlineView *)outlineView persistentObjectForItem:(id)item
+{
+ return [NSKeyedArchiver archivedDataWithRootObject:item];
+}
+
#pragma mark - Added Functionality (optional)
/* Use to customize the font and display characteristics of the title cell */
- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item