1
0
Fork 0
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:
Dmitry Serov 2017-08-18 18:47:55 +07:00
parent 1a78f538ab
commit bad7f5d198

View file

@ -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