]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/sidebarview.m
macosx: implemented 'play-and-exit' (closes #2237)
[vlc] / modules / gui / macosx / sidebarview.m
index 7398cc528ececd1e157a7ba634718368ee69654d..2c1570b3d956b00a0f5a0007cd7610b1d0fb760b 100644 (file)
@@ -39,7 +39,7 @@
        return self;
 }
 
-- (float) dividerThickness
+- (CGFloat) dividerThickness
 {
        return 1.0;
 }
     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];
     }
 }
 @implementation VLCSidebar (NSOutlineViewDataSource)
 
 /* return the number of children for Obj-C pointer item */ /* DONE */
-- (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item
+- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item
 {
     return [o_playlist outlineView:outlineView numberOfChildrenOfItem:item];
 }
 
 /* return the child at index for the Obj-C pointer item */ /* DONE */
-- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item
+- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item
 {
     return [o_playlist outlineView:outlineView child:index ofItem:item];
 }