Fixed up first responders so it goes back to the playlist view when hiding side view.

CQTexperiment
vspader 2008-06-21 06:04:09 +00:00
parent 6fb1c77e62
commit 3daa06ebae
1 changed files with 3 additions and 3 deletions

View File

@ -171,9 +171,7 @@
[self setDividerPosition: [[NSUserDefaults standardUserDefaults] floatForKey:@"sideViewDividerPosition"]]; [self setDividerPosition: [[NSUserDefaults standardUserDefaults] floatForKey:@"sideViewDividerPosition"]];
NSWindow *window = [[sideView view] window]; [[[sideView view] window] makeFirstResponder:[sideView firstResponder]];
BOOL r = [window makeFirstResponder:[sideView firstResponder]];
NSLog(@"FIRST: %@ %i", window, r);
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"]; [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"];
} }
@ -182,6 +180,8 @@
{ {
[splitView setSubviews:[NSArray arrayWithObject:playlistView]]; [splitView setSubviews:[NSArray arrayWithObject:playlistView]];
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showSideView"]; [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showSideView"];
[[playlistView window] makeFirstResponder:playlistView];
} }
- (BOOL)sideViewIsHidden - (BOOL)sideViewIsHidden