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

git version control git at videolan.org
Sat Jun 13 15:30:41 CEST 2009


vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jun 13 15:30:37 2009 +0200| [4be05800cb0c127a4bc87049c29e37e73f1ee604] | committer: Felix Paul Kühne 

macosx: remove deprecated method selectRow:byExtendingSelection:

manual backport

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

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

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 996bb83..db4e8b5 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1315,7 +1315,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 );
@@ -1712,7 +1712,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 2d8ed59..cc52e44 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




More information about the vlc-devel mailing list