Kaydet (Commit) 59fd62fc authored tarafından Julien Nabet's avatar Julien Nabet

Typo notifcation->notification

Change-Id: I411105f1a3d519dd08bee55c722e4a06a14f238d
Reviewed-on: https://gerrit.libreoffice.org/41368Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 76da9aea
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
- (IOHIDQueueInterface**) queue; - (IOHIDQueueInterface**) queue;
- (IOHIDDeviceInterface**) hidDeviceInterface; - (IOHIDDeviceInterface**) hidDeviceInterface;
- (void) handleEventWithCookieString: (NSString*) cookieString sumOfValues: (SInt32) sumOfValues; - (void) handleEventWithCookieString: (NSString*) cookieString sumOfValues: (SInt32) sumOfValues;
- (void) removeNotifcationObserver; - (void) removeNotificationObserver;
- (void) remoteControlAvailable:(NSNotification *)notification; - (void) remoteControlAvailable:(NSNotification *)notification;
@end @end
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
} }
- (void) dealloc { - (void) dealloc {
[self removeNotifcationObserver]; [self removeNotificationObserver];
[self stopListening:self]; [self stopListening:self];
[cookieToButtonMapping release]; [cookieToButtonMapping release];
[super dealloc]; [super dealloc];
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) EnableSecureEventInput(); if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) EnableSecureEventInput();
[self removeNotifcationObserver]; [self removeNotificationObserver];
io_object_t hidDevice = [[self class] findRemoteDevice]; io_object_t hidDevice = [[self class] findRemoteDevice];
if (hidDevice == 0) return; if (hidDevice == 0) return;
...@@ -240,7 +240,7 @@ cleanup: ...@@ -240,7 +240,7 @@ cleanup:
if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) DisableSecureEventInput(); if ([self isOpenInExclusiveMode] && fixSecureEventInputBug) DisableSecureEventInput();
if ([self isOpenInExclusiveMode] && sendNotification) { if ([self isOpenInExclusiveMode] && sendNotification) {
[[self class] sendFinishedNotifcationForAppIdentifier: nil]; [[self class] sendFinishedNotificationForAppIdentifier: nil];
} }
// be KVO friendly // be KVO friendly
[self willChangeValueForKey:@"listeningToRemote"]; [self willChangeValueForKey:@"listeningToRemote"];
...@@ -320,13 +320,13 @@ cleanup: ...@@ -320,13 +320,13 @@ cleanup:
} }
} }
- (void) removeNotifcationObserver { - (void) removeNotificationObserver {
[[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION object:nil]; [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION object:nil];
} }
- (void) remoteControlAvailable:(NSNotification *)notification { - (void) remoteControlAvailable:(NSNotification *)notification {
(void)notification; (void)notification;
[self removeNotifcationObserver]; [self removeNotificationObserver];
[self startListening: self]; [self startListening: self];
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
// notification names that are being used to signal that an application wants to // 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 // have access to the remote control device or if the application has finished
// using the remote control device // 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"; NSString* FINISHED_USING_REMOTE_CONTROL_NOTIFICATION = @"mac.remotecontrols.FinishedUsingRemoteControl";
// keys used in user objects for distributed notifications // keys used in user objects for distributed notifications
...@@ -132,14 +132,14 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier"; ...@@ -132,14 +132,14 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
deliverImmediately:YES]; deliverImmediately:YES];
} }
+ (void) sendFinishedNotifcationForAppIdentifier: (NSString*) identifier { + (void) sendFinishedNotificationForAppIdentifier: (NSString*) identifier {
[self sendDistributedNotification:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:identifier]; [self sendDistributedNotification:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:identifier];
#ifdef DEBUG #ifdef DEBUG
NSLog( @"Apple RemoteControl: sendFinishedNotifcationForAppIdentifier ..."); NSLog( @"Apple RemoteControl: sendFinishedNotificationForAppIdentifier ...");
#endif #endif
} }
+ (void) sendRequestForRemoteControlNotification { + (void) sendRequestForRemoteControlNotification {
[self sendDistributedNotification:REQUEST_FOR_REMOTE_CONTROL_NOTIFCATION targetBundleIdentifier:nil]; [self sendDistributedNotification:REQUEST_FOR_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:nil];
#ifdef DEBUG #ifdef DEBUG
NSLog( @"Apple RemoteControl: sendRequestForRemoteControlNotification ..."); NSLog( @"Apple RemoteControl: sendRequestForRemoteControlNotification ...");
#endif #endif
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
// notification names that are being used to signal that an application wants to // 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 // have access to the remote control device or if the application has finished
// using the remote control device // 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; extern NSString* FINISHED_USING_REMOTE_CONTROL_NOTIFICATION;
// keys used in user objects for distributed notifications // keys used in user objects for distributed notifications
...@@ -106,7 +106,7 @@ SAL_DLLPUBLIC_EXPORT @interface RemoteControl : NSObject { ...@@ -106,7 +106,7 @@ SAL_DLLPUBLIC_EXPORT @interface RemoteControl : NSObject {
- (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier; - (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier;
// sending of notifications between applications // sending of notifications between applications
+ (void) sendFinishedNotifcationForAppIdentifier: (NSString*) identifier; + (void) sendFinishedNotificationForAppIdentifier: (NSString*) identifier;
+ (void) sendRequestForRemoteControlNotification; + (void) sendRequestForRemoteControlNotification;
// name of the device // name of the device
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment