]> git.sesse.net Git - vlc/commitdiff
* playlistinfo.m: update the stats faster after a p_item-switch
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 25 Mar 2006 18:54:58 +0000 (18:54 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 25 Mar 2006 18:54:58 +0000 (18:54 +0000)
* both: fixed each one 'comparison of distinct Objective-C types lacks a cast' warnings

modules/gui/macosx/playlistinfo.m
modules/gui/macosx/prefs.m

index 34511e5856368433276cefb090eb8d545755cc66..a52a0d130aa42e61811f3b285c439955b5719e91 100644 (file)
     [[VLCInfoTreeItem rootItem] refresh];
     [o_outline_view reloadData];
 
-    /* updating the stats isn't our job, but is done by the timer if needed */
+    /* update the stats once to display p_item change faster */
+    [self updateStatistics: nil];
 }
 
 - (void)setMeta: (char *)meta forLabel: (id)theItem
 
 - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item
 {
-    return (item == nil) ? [[VLCInfoTreeItem rootItem] childAtIndex:index] : [item childAtIndex:index];
+    return (item == nil) ? [[VLCInfoTreeItem rootItem] childAtIndex:index] : (id)[item childAtIndex:index];
 }
 
 - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item
index 002adf6eb13ab8c71e2eeea3c56b5d6291895013..86fe2306977f9fbcf5472fe2defd38ea80ec2e66 100644 (file)
@@ -202,7 +202,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
 
 - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item {
     return (item == nil) ? [[VLCTreeItem rootItem] childAtIndex:index] :
-                            [item childAtIndex:index];
+                            (id)[item childAtIndex:index];
 }
 
 - (id)outlineView:(NSOutlineView *)outlineView