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>
This commit is contained in:
Julien Nabet
2017-08-21 07:38:46 +02:00
parent 76da9aea1c
commit 59fd62fc2f
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -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];
}
+4 -4
View File
@@ -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
+2 -2
View File
@@ -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