From d6bfd69e1c4295fad3f324afe66d89941c5120ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Paul=20K=C3=BChne?= Date: Sat, 13 Jun 2009 14:18:03 +0200 Subject: [PATCH] macosx: remove deprecated method selectRow:byExtendingSelection: --- 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 b5545b09bd..030387b470 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 7561b6fcf8..23c8fecf35 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 728af9ac2e..2c1570b3d9 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]; } } -- 2.39.2