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 @@
- (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];
}
......
......@@ -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
......
......@@ -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
......
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