[vlc-devel] commit: macosx: remove deprecated method selectRow:byExtendingSelection: ( Felix Paul Kühne )

git version control git at videolan.org
Sat Jun 13 14:18:12 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jun 13 14:18:03 2009 +0200| [d6bfd69e1c4295fad3f324afe66d89941c5120ef] | committer: Felix Paul Kühne 

macosx: remove deprecated method selectRow:byExtendingSelection:

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d6bfd69e1c4295fad3f324afe66d89941c5120ef
---

 modules/gui/macosx/playlist.m    |    4 ++--
 modules/gui/macosx/prefs.m       |    2 +-
 modules/gui/macosx/sidebarview.m |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index b5545b0..030387b 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1408,7 +1408,7 @@
     }
     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 );
@@ -1826,7 +1826,7 @@
         }
 
         [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 );
diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index 7561b6f..23c8fec 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -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
diff --git a/modules/gui/macosx/sidebarview.m b/modules/gui/macosx/sidebarview.m
index 728af9a..2c1570b 100644
--- a/modules/gui/macosx/sidebarview.m
+++ b/modules/gui/macosx/sidebarview.m
@@ -131,7 +131,7 @@
     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];
     }
 }
@@ -162,7 +162,7 @@
     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];
     }
 }




More information about the vlc-devel mailing list