Author: hdu
Date: Fri Feb 7 14:34:14 2014
New Revision: 1565665
URL: http://svn.apache.org/r1565665
Log:
#i124201# prevent a NSException in AppleRemote's sendDistributedNotification
method
the RemoteControl is already initialized anyway
Modified:
openoffice/trunk/main/apple_remote/RemoteControl.m
Modified: openoffice/trunk/main/apple_remote/RemoteControl.m
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/apple_remote/RemoteControl.m?rev=1565665&r1=1565664&r2=1565665&view=diff
==============================================================================
--- openoffice/trunk/main/apple_remote/RemoteControl.m (original)
+++ openoffice/trunk/main/apple_remote/RemoteControl.m Fri Feb 7 14:34:14 2014
@@ -97,7 +97,6 @@ NSString* kTargetApplicationIdentifier =
+ (void) sendDistributedNotification: (NSString*) notificationName
targetBundleIdentifier: (NSString*) targetIdentifier
{
- if ( (self = [super init]) ) {
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithCString:[self remoteControlDeviceName]
encoding:NSASCIIStringEncoding],
kRemoteControlDeviceName /* key =
RemoteControlDeviceName -> OK */,
[[NSBundle mainBundle] bundleIdentifier] /* value
= org.openoffice.script -> OK */,
@@ -123,7 +122,6 @@ NSString* kTargetApplicationIdentifier =
object:nil
userInfo:userInfo
deliverImmediately:YES];
- }
}
+ (void) sendFinishedNotifcationForAppIdentifier: (NSString*) identifier {