Commit b0df43f9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/playlistinfo: simplify header and implementation

parent 5a66b9fc
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
BOOL b_awakeFromNib; BOOL b_awakeFromNib;
} }
@property (readonly) input_item_t * item;
- (void)initPanel; - (void)initPanel;
...@@ -109,7 +110,6 @@ ...@@ -109,7 +110,6 @@
- (IBAction)downloadCoverArt:(id)sender; - (IBAction)downloadCoverArt:(id)sender;
- (void)initMediaPanelStats; - (void)initMediaPanelStats;
- (void)updatePanelWithItem:(input_item_t *)_p_item; - (void)updatePanelWithItem:(input_item_t *)_p_item;
- (input_item_t *)item;
- (void)setMeta: (char *)meta forLabel: (id)theItem; - (void)setMeta: (char *)meta forLabel: (id)theItem;
- (void)updateStatistics; - (void)updateStatistics;
...@@ -126,10 +126,11 @@ ...@@ -126,10 +126,11 @@
NSMutableArray *o_children; NSMutableArray *o_children;
} }
- (int)numberOfChildren; @property (readonly) int numberOfChildren;
@property (readonly) NSString * name;
@property (readonly) NSString * value;
- (VLCInfoTreeItem *)childAtIndex:(NSUInteger)i_index; - (VLCInfoTreeItem *)childAtIndex:(NSUInteger)i_index;
- (NSString *)name;
- (NSString *)value;
- (void)refresh; - (void)refresh;
@end @end
......
...@@ -425,6 +425,8 @@ error: ...@@ -425,6 +425,8 @@ error:
@implementation VLCInfoTreeItem @implementation VLCInfoTreeItem
@synthesize name = o_name, value = o_value;
#define IsALeafNode ((id)-1) #define IsALeafNode ((id)-1)
- (id)initWithName: (NSString *)o_item_name value: (NSString *)o_item_value ID: (int)i_id - (id)initWithName: (NSString *)o_item_name value: (NSString *)o_item_value ID: (int)i_id
...@@ -504,16 +506,6 @@ error: ...@@ -504,16 +506,6 @@ error:
return o_children; return o_children;
} }
- (NSString *)name
{
return [[o_name retain] autorelease];
}
- (NSString *)value
{
return [[o_value retain] autorelease];
}
- (void)refresh - (void)refresh
{ {
input_item_t * oldItem = p_item; input_item_t * oldItem = p_item;
......
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