Fixed some more connections. Added escape key to file drawer to close it.

CQTexperiment
vspader 2007-02-18 21:35:53 +00:00
parent 2f0a4e6669
commit f36b646b1d
5 changed files with 7 additions and 8 deletions

View File

@ -20,8 +20,6 @@
IBOutlet NSButton *playButton;
IBOutlet NSButton *prevButton;
IBOutlet NSButton *nextButton;
IBOutlet NSButton *addButton;
IBOutlet NSButton *remButton;
IBOutlet NSButton *infoButton;
IBOutlet NSButton *fileButton;
IBOutlet NSButton *shuffleButton;

View File

@ -93,8 +93,6 @@
[playButton setToolTip:NSLocalizedString(@"PlayButtonTooltip", @"")];
[prevButton setToolTip:NSLocalizedString(@"PrevButtonTooltip", @"")];
[nextButton setToolTip:NSLocalizedString(@"NextButtonTooltip", @"")];
[addButton setToolTip:NSLocalizedString(@"AddButtonTooltip", @"")];
[remButton setToolTip:NSLocalizedString(@"RemoveButtonTooltip", @"")];
[infoButton setToolTip:NSLocalizedString(@"InfoButtonTooltip", @"")];
[shuffleButton setToolTip:NSLocalizedString(@"ShuffleButtonTooltip", @"")];
[repeatButton setToolTip:NSLocalizedString(@"RepeatButtonTooltip", @"")];
@ -209,7 +207,7 @@
- (IBAction)toggleFileDrawer:(id)sender
{
[mainWindow makeKeyAndOrderFront:self];
NSLog(@"TOGGLING...");
[fileDrawer toggle:self];
}
@ -231,6 +229,7 @@
[infoButton setState:NSOffState];
}
else if ([notification object] == fileDrawer) {
NSLog(@"CLOSED");
[fileButton setState:NSOffState];
[mainWindow makeFirstResponder: playlistView];

View File

@ -32,11 +32,11 @@
<integer>4</integer>
<key>IBOpenObjects</key>
<array>
<integer>463</integer>
<integer>513</integer>
<integer>29</integer>
<integer>21</integer>
<integer>1156</integer>
<integer>29</integer>
<integer>463</integer>
<integer>513</integer>
</array>
<key>IBSystem Version</key>
<string>8L127</string>

Binary file not shown.

View File

@ -61,6 +61,8 @@
//Add songs to list
[[self delegate] addSelectedToPlaylist];
[fileDrawer close];
} else if (pressedChar == 0x1b) {//Escape
[fileDrawer close];
} else if (pressedChar == NSLeftArrowFunctionKey || pressedChar == NSRightArrowFunctionKey) { //left or right
[super keyDown:theEvent];