<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>25 92 505 517 0 0 1280 938 </string>
+ <string>470 105 505 517 0 0 1024 746 </string>
<key>IBEditorPositions</key>
<dict>
<key>1617</key>
<string>542 480 104 149 0 0 1024 746 </string>
<key>2197</key>
- <string>237 313 596 367 0 0 1024 746 </string>
+ <string>91 300 596 367 0 0 1024 746 </string>
<key>29</key>
- <string>326 879 419 44 0 0 1280 938 </string>
+ <string>229 690 419 44 0 0 1024 746 </string>
<key>915</key>
<string>731 416 165 180 0 0 1024 746 </string>
</dict>
<key>IBOpenObjects</key>
<array>
<integer>21</integer>
- <integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>7S215</string>
{
return;
}
-#if 0
o_temp = [NSString stringWithUTF8String:
- p_playlist->p_input.psz_name];
+ p_playlist->status.p_item->input.psz_name];
if( o_temp == NULL )
o_temp = [NSString stringWithCString:
- p_playlist->p_input.psz_name];
+ p_playlist->status.p_item->input.psz_name];
[o_scrollfield setStringValue: o_temp ];
-#endif
p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE );
}
vlc_object_release( (vlc_object_t *)p_vout );
}
- //[o_playlist updateRowSelection];
+ [o_playlist updateRowSelection];
vlc_object_release( p_playlist );
p_intf->p_sys->b_current_title_update = FALSE;
}
- (void)updateTogglePlaylistState;
- (void)playlistUpdated;
- (void)sortNode:(int)i_mode;
+- (void)updateRowSelection;
- (IBAction)playItem:(id)sender;
- (IBAction)deleteItem:(id)sender;
}
}
+- (void)updateRowSelection
+{
+ playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,
+ FIND_ANYWHERE );
+ playlist_item_t * p_item, * p_temp_item;
+ NSMutableArray * o_array = [NSMutableArray array];
+ int i,i_row;
+ unsigned int j;
+
+ if (p_playlist == NULL)
+ return;
+
+ p_item = p_playlist->status.p_item;
+ p_temp_item = p_item;
+
+ while (p_temp_item->i_parents > 0)
+ {
+ [o_array insertObject: [NSValue valueWithPointer: p_temp_item] atIndex: 0];
+ for (i = 0 ; i < p_temp_item->i_parents ; i++)
+ {
+ if (p_temp_item->pp_parents[i]->i_view == VIEW_SIMPLE)
+ {
+ p_temp_item = p_temp_item->pp_parents[i]->p_parent;
+ break;
+ }
+ }
+ }
+
+ for (j = 0 ; j < [o_array count] - 1 ; j++)
+ {
+ [o_outline_view expandItem: [o_outline_dict objectForKey:
+ [NSString stringWithFormat: @"%p",
+ [[o_array objectAtIndex:j] pointerValue]]]];
+
+ }
+
+ i_row = [o_outline_view rowForItem:[o_outline_dict
+ objectForKey:[NSString stringWithFormat: @"%p", p_item]]];
+
+ [o_outline_view selectRow: i_row byExtendingSelection: NO];
+ [o_outline_view scrollRowToVisible: i_row];
+
+ vlc_object_release(p_playlist);
+}
+
- (bool)isItem:(playlist_item_t *)p_item inNode:(playlist_item_t *)p_node
{
playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,