Commit 9e4cdfd5 authored by Benjamin Pracht's avatar Benjamin Pracht

* Item Info panel works again from playlist context menu

parent d9bb7326
......@@ -74,5 +74,7 @@
- (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
- (playlist_item_t *)selectedPlaylistItem;
@end
......@@ -593,6 +593,12 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
return( o_ctx_menu );
}
- (playlist_item_t *)selectedPlaylistItem
{
return [[o_outline_view itemAtRow: [o_outline_view selectedRow]]
pointerValue];
}
@end
@implementation VLCPlaylist (NSOutlineViewDataSource)
......
......@@ -41,8 +41,7 @@
IBOutlet id o_btn_add_group;
IBOutlet id o_outline_view;
int i_item;
NSMutableArray * o_selected;
playlist_item_t * p_item;
}
- (IBAction)togglePlaylistInfoPanel:(id)sender;
......@@ -50,7 +49,8 @@
- (void)initPanel:(id)sender;
- (IBAction)infoCancel:(id)sender;
- (IBAction)infoOk:(id)sender;
- (int)getItem;
- (playlist_item_t *)getItem;
- (bool)isItemInPlaylist:(playlist_item_t *)p_item;
@end
......@@ -59,7 +59,7 @@
NSString *o_name;
NSString *o_value;
int i_object_id;
int i_item;
playlist_item_t * p_item;
VLCInfoTreeItem *o_parent;
NSMutableArray *o_children;
}
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment