diff options
Diffstat (limited to 'apple_remote/source/HIDRemoteControlDevice.m')
-rw-r--r-- | apple_remote/source/HIDRemoteControlDevice.m | 12 |
1 files changed, 6 insertions, 6 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]; } |