+- (IBAction)deleteItems:(id)sender
+{
+ int i_row;
+
+ intf_thread_t * p_intf = [NSApp getIntf];
+ playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
+ FIND_ANYWHERE );
+
+ if( p_playlist == NULL )
+ {
+ return;
+ }
+
+ while( ( i_row = [o_table_view selectedRow] ) != -1 )
+ {
+ if( p_playlist->i_index == i_row && p_playlist->i_status )
+ {
+ playlist_Stop( p_playlist );
+ }
+
+ playlist_Delete( p_playlist, i_row );
+
+ [o_table_view deselectRow: i_row];
+ }
+
+ vlc_object_release( p_playlist );
+
+ [self playlistUpdated];
+}
+
+- (IBAction)selectAll:(id)sender
+{
+ [o_table_view selectAll: nil];
+}
+