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

macosx: return a value in a non-void method

parent 0e65dd77
...@@ -255,7 +255,7 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -255,7 +255,7 @@ static NSMutableArray *blackoutWindows = NULL;
} }
invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(close)]]; invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(close)]];
[invoc setTarget: (id)super]; [invoc setTarget: self];
if (![self isVisible] || [self alphaValue] == 0.0) if (![self isVisible] || [self alphaValue] == 0.0)
{ {
...@@ -269,7 +269,7 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -269,7 +269,7 @@ static NSMutableArray *blackoutWindows = NULL;
- (void)orderOut: (id)sender animate: (BOOL)animate - (void)orderOut: (id)sender animate: (BOOL)animate
{ {
NSInvocation *invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(orderOut:)]]; NSInvocation *invoc = [NSInvocation invocationWithMethodSignature:[super methodSignatureForSelector:@selector(orderOut:)]];
[invoc setTarget: (id)super]; [invoc setTarget: self];
[invoc setArgument: sender atIndex: 0]; [invoc setArgument: sender atIndex: 0];
[self orderOut: sender animate: animate callback: invoc]; [self orderOut: sender animate: animate callback: invoc];
} }
......
...@@ -706,7 +706,7 @@ ...@@ -706,7 +706,7 @@
inNode: (playlist_item_t *)p_node inNode: (playlist_item_t *)p_node
checkItemExistence:(BOOL)b_check checkItemExistence:(BOOL)b_check
{ {
[self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO]; return [self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO];
} }
/* This method is useful for instance to remove the selected children of an /* This method is useful for instance to remove the selected children of an
......
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