]> git.sesse.net Git - vlc/commitdiff
macosx: remove deprecated method selectRow:byExtendingSelection:
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 13 Jun 2009 12:18:03 +0000 (14:18 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 13 Jun 2009 12:18:11 +0000 (14:18 +0200)
modules/gui/macosx/playlist.m
modules/gui/macosx/prefs.m
modules/gui/macosx/sidebarview.m

index b5545b09bdcdec16ae79dc8c4a091d09327004c9..030387b47021337e26a1157fb3fd193b11db8fe7 100644 (file)
     }
     if( i_row > -1 )
     {
-        [o_outline_view selectRow:i_row byExtendingSelection: NO];
+               [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:i_row] byExtendingSelection:NO];
         [o_outline_view scrollRowToVisible: i_row];
     }
     pl_Release( VLCIntf );
         }
 
         [o_outline_view deselectAll: self];
-        [o_outline_view selectRow: i_row byExtendingSelection: NO];
+        [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:i_row] byExtendingSelection:NO];
         [o_outline_view scrollRowToVisible: i_row];
 
         pl_Release( VLCIntf );
index 7561b6fcf840b1532b36b2617be3de0f9c275971..23c8fecf35d789c1789a93dfd61b3c2a8e4ee3dd 100644 (file)
@@ -179,7 +179,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
     [o_prefs_view setHasVerticalScroller: YES];
     [o_prefs_view setDrawsBackground: NO];
     [o_prefs_view setDocumentView: o_empty_view];
-    [o_tree selectRow:0 byExtendingSelection:NO];
+       [o_tree selectRowIndexes: [NSIndexSet indexSetWithIndex: 0] byExtendingSelection: NO];
 }
 
 - (void)setTitle: (NSString *) o_title_name
index 728af9ac2eb9d7945d1e324513bc880e4d63ff35..2c1570b3d956b00a0f5a0007cd7610b1d0fb760b 100644 (file)
     i_row = [o_outline_view rowForItem:item];
     if( i_row > -1 )
     {
-        [o_outline_view selectRow:i_row byExtendingSelection: NO];
+               [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:i_row] byExtendingSelection:NO];
         [o_outline_view scrollRowToVisible: i_row];
     }
 }
     i_row = [o_outline_view rowForItem:[o_playlist playingItem]];
     if( i_row > -1 )
     {
-        [o_outline_view selectRow:i_row byExtendingSelection: NO];
+               [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:i_row] byExtendingSelection:NO];
         [o_outline_view scrollRowToVisible: i_row];
     }
 }