- playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,
- FIND_ANYWHERE );
- playlist_item_t *p_temp_item = p_item;
-
- if( p_playlist == NULL )
- {
- return NO;
- }
-
- if ( p_temp_item )
- {
- int i;
- vlc_mutex_lock( &p_playlist->object_lock );
-
- /* Since outlineView: willDisplayCell:... may call this function with
- p_items that don't exist anymore, first check if the item is still
- in the playlist. Any cleaner solution welcomed. */
-
- for ( i = 0 ; i < p_playlist->i_all_size ; i++ )
+ int i;
+ int i_total = [[o_outline_view dataSource] outlineView:o_outline_view
+ numberOfChildrenOfItem: o_node];
+ for( i = 0 ; i < i_total ; i++ )
+ {
+ id o_temp_item = [[o_outline_view dataSource] outlineView:
+ o_outline_view child:i ofItem: o_node];
+ if( [[o_outline_view dataSource] outlineView:o_outline_view
+ numberOfChildrenOfItem: o_temp_item] > 0 )