mirror of
https://github.com/transmission/transmission
synced 2024-12-28 10:38:45 +00:00
Use NSInvocation to make Growl compile under ARC
This commit is contained in:
parent
1a78f538ab
commit
bad7f5d198
1 changed files with 8 additions and 1 deletions
|
@ -734,7 +734,14 @@
|
|||
|
||||
- (IBAction) openGrowlApp: (id) sender
|
||||
{
|
||||
// [GrowlApplicationBridge openGrowlPreferences: YES];
|
||||
SEL selector = NSSelectorFromString(@"openGrowlPreferences:");
|
||||
NSMethodSignature * signature = [GrowlApplicationBridge methodSignatureForSelector:selector];
|
||||
NSInvocation * invocation = [NSInvocation invocationWithMethodSignature:signature];
|
||||
invocation.selector = selector;
|
||||
invocation.target = GrowlApplicationBridge.class;
|
||||
BOOL yes = YES;
|
||||
[invocation setArgument:&yes atIndex:0];
|
||||
[invocation invoke];
|
||||
}
|
||||
|
||||
- (void) openNotificationSystemPrefs: (id) sender
|
||||
|
|
Loading…
Reference in a new issue