Commit 02a2bd1a authored by Benjamin Pracht's avatar Benjamin Pracht

Restore the save Playlist function (copy/paste from 0.8.1)

parent e9ee83a8
......@@ -248,6 +248,7 @@
deleteItem = id;
handlePopUp = id;
playItem = id;
savePlaylist = id;
searchItem = id;
selectAll = id;
sortNodeByAuthor = id;
......
......@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>36 197 496 270 0 0 800 578 </string>
<string>348 388 496 270 0 0 1024 746 </string>
<key>IBEditorPositions</key>
<dict>
<key>1617</key>
......@@ -21,7 +21,6 @@
<array/>
<key>IBOpenObjects</key>
<array>
<integer>2029</integer>
<integer>21</integer>
</array>
<key>IBSystem Version</key>
......
......@@ -92,6 +92,7 @@
- (IBAction)servicesChange:(id)sender;
- (IBAction)playItem:(id)sender;
- (IBAction)savePlaylist:(id)sender;
- (IBAction)deleteItem:(id)sender;
- (IBAction)selectAll:(id)sender;
- (IBAction)sortNodeByName:(id)sender;
......
......@@ -392,6 +392,24 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
return NO;
}
- (IBAction)savePlaylist:(id)sender
{
intf_thread_t * p_intf = VLCIntf;
playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
NSSavePanel *o_save_panel = [NSSavePanel savePanel];
NSString * o_name = [NSString stringWithFormat: @"%@.m3u", _NS("Untitled")];
[o_save_panel setTitle: _NS("Save Playlist")];
[o_save_panel setPrompt: _NS("Save")];
if( [o_save_panel runModalForDirectory: nil
file: o_name] == NSOKButton )
{
playlist_Export( p_playlist, [[o_save_panel filename] fileSystemRepresentation], "export-m3u" );
}
}
/* When called retrieves the selected outlineview row and plays that node or item */
- (IBAction)playItem:(id)sender
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment