diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-08-20 22:28:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-08-21 07:38:46 +0200 |
commit | 59fd62fc2ff86320da67f99171eedbfe2d931c2b (patch) | |
tree | 12f88fcb7766e384e71c39d1e8cb42239a1f3871 /apple_remote | |
parent | 76da9aea1c956a4febfd530a5a53e820c1440734 (diff) |
Typo notifcation->notification
Change-Id: I411105f1a3d519dd08bee55c722e4a06a14f238d
Reviewed-on: https://gerrit.libreoffice.org/41368
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'apple_remote')
-rw-r--r-- | apple_remote/source/HIDRemoteControlDevice.m | 12 | ||||
-rw-r--r-- | apple_remote/source/RemoteControl.m | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/apple_remote/source/HIDRemoteControlDevice.m b/apple_remote/source/HIDRemoteControlDevice.m index ba1ebb25d243..b96ac721b3b3 100644 --- a/apple_remote/source/HIDRemoteControlDevice.m +++ b/apple_remote/source/HIDRemoteControlDevice.m @@ -43,7 +43,7 @@ - (IOHIDQueueInterface**) queue; - (IOHIDDeviceInterface**) hidDeviceInterface; - (void) handleEventWithCookieString: (NSString*) cookieString sumOfValues: (SInt32) sumOfValues; -- (void) removeNotifcationObserver; +- (void) removeNotificationObserver; - (void) remoteControlAvailable:(NSNotification *)notification; @end @@ -96,7 +96,7 @@ } - (void) dealloc { - [self removeNotifcationObserver]; + [self removeNotificationObserver]; [self stopListening:self]; [cookieToButtonMapping release]; [super dealloc]; @@ -168,7 +168,7 @@ if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) EnableSecureEventInput(); - [self removeNotifcationObserver]; + [self removeNotificationObserver]; io_object_t hidDevice = [[self class] findRemoteDevice]; if (hidDevice == 0) return; @@ -240,7 +240,7 @@ cleanup: if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) DisableSecureEventInput(); if ([self isOpenInExclusiveMode] && sendNotification) { - [[self class] sendFinishedNotifcationForAppIdentifier: nil]; + [[self class] sendFinishedNotificationForAppIdentifier: nil]; } // be KVO friendly [self willChangeValueForKey:@"listeningToRemote"]; @@ -320,13 +320,13 @@ cleanup: } } -- (void) removeNotifcationObserver { +- (void) removeNotificationObserver { [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION object:nil]; } - (void) remoteControlAvailable:(NSNotification *)notification { (void)notification; - [self removeNotifcationObserver]; + [self removeNotificationObserver]; [self startListening: self]; } diff --git a/apple_remote/source/RemoteControl.m b/apple_remote/source/RemoteControl.m index 1f1b7f179350..9cf840527bd3 100644 --- a/apple_remote/source/RemoteControl.m +++ b/apple_remote/source/RemoteControl.m @@ -34,7 +34,7 @@ // notification names that are being used to signal that an application wants to // have access to the remote control device or if the application has finished // using the remote control device -NSString* REQUEST_FOR_REMOTE_CONTROL_NOTIFCATION = @"mac.remotecontrols.RequestForRemoteControl"; +NSString* REQUEST_FOR_REMOTE_CONTROL_NOTIFICATION = @"mac.remotecontrols.RequestForRemoteControl"; NSString* FINISHED_USING_REMOTE_CONTROL_NOTIFICATION = @"mac.remotecontrols.FinishedUsingRemoteControl"; // keys used in user objects for distributed notifications @@ -132,14 +132,14 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier"; deliverImmediately:YES]; } -+ (void) sendFinishedNotifcationForAppIdentifier: (NSString*) identifier { ++ (void) sendFinishedNotificationForAppIdentifier: (NSString*) identifier { [self sendDistributedNotification:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:identifier]; #ifdef DEBUG - NSLog( @"Apple RemoteControl: sendFinishedNotifcationForAppIdentifier ..."); + NSLog( @"Apple RemoteControl: sendFinishedNotificationForAppIdentifier ..."); #endif } + (void) sendRequestForRemoteControlNotification { - [self sendDistributedNotification:REQUEST_FOR_REMOTE_CONTROL_NOTIFCATION targetBundleIdentifier:nil]; + [self sendDistributedNotification:REQUEST_FOR_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:nil]; #ifdef DEBUG NSLog( @"Apple RemoteControl: sendRequestForRemoteControlNotification ..."); #endif |