summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-08-20 22:28:39 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-08-21 07:38:46 +0200
commit59fd62fc2ff86320da67f99171eedbfe2d931c2b (patch)
tree12f88fcb7766e384e71c39d1e8cb42239a1f3871
parent76da9aea1c956a4febfd530a5a53e820c1440734 (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>
-rw-r--r--apple_remote/source/HIDRemoteControlDevice.m12
-rw-r--r--apple_remote/source/RemoteControl.m8
-rw-r--r--include/apple_remote/RemoteControl.h4
3 files changed, 12 insertions, 12 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
diff --git a/include/apple_remote/RemoteControl.h b/include/apple_remote/RemoteControl.h
index 0b943920e6ee..2d9c189b8e31 100644
--- a/include/apple_remote/RemoteControl.h
+++ b/include/apple_remote/RemoteControl.h
@@ -38,7 +38,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
-extern NSString* REQUEST_FOR_REMOTE_CONTROL_NOTIFCATION;
+extern NSString* REQUEST_FOR_REMOTE_CONTROL_NOTIFICATION;
extern NSString* FINISHED_USING_REMOTE_CONTROL_NOTIFICATION;
// keys used in user objects for distributed notifications
@@ -106,7 +106,7 @@ SAL_DLLPUBLIC_EXPORT @interface RemoteControl : NSObject {
- (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier;
// sending of notifications between applications
-+ (void) sendFinishedNotifcationForAppIdentifier: (NSString*) identifier;
++ (void) sendFinishedNotificationForAppIdentifier: (NSString*) identifier;
+ (void) sendRequestForRemoteControlNotification;
// name of the device