Changed open URL panel to use a combobox.
parent
d5c777f7e8
commit
e452cbe3db
|
@ -22,7 +22,7 @@
|
|||
IBOutlet NSPanel *mainWindow;
|
||||
|
||||
IBOutlet NSPanel *addURLPanel;
|
||||
IBOutlet NSTextField *urlField;
|
||||
IBOutlet NSComboBox *urlComboBox;
|
||||
|
||||
IBOutlet NSButton *playButton;
|
||||
IBOutlet NSButton *prevButton;
|
||||
|
|
|
@ -151,13 +151,13 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
|
|||
|
||||
- (IBAction)addURLSheetOK:(id)sender
|
||||
{
|
||||
NSURL *url = [NSURL URLWithString:[urlField stringValue]];
|
||||
NSURL *url = [NSURL URLWithString:[urlComboBox stringValue]];
|
||||
|
||||
PlaylistEntry *pe = [[PlaylistEntry alloc] init];
|
||||
|
||||
[pe setURL:url];
|
||||
[pe setIndex:[[playlistController arrangedObjects] count]];
|
||||
[pe setTitle:[urlField stringValue]];
|
||||
[pe setTitle:[urlComboBox stringValue]];
|
||||
|
||||
[playlistController addObject:pe];
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
showTrackColumn = NSMenuItem;
|
||||
showYearColumn = NSMenuItem;
|
||||
shuffleButton = NSButton;
|
||||
urlField = NSTextField;
|
||||
urlComboBox = NSComboBox;
|
||||
};
|
||||
SUPERCLASS = NSObject;
|
||||
},
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>463</integer>
|
||||
<integer>29</integer>
|
||||
<integer>1156</integer>
|
||||
<integer>1307</integer>
|
||||
<integer>513</integer>
|
||||
<integer>21</integer>
|
||||
<integer>29</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8L2127</string>
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue