Skip to content
Browse files

Renamed unregisterFromApplicationLaunchNotifications to removeApplica…

…tionLaunchNotificationObserver
  • Loading branch information...
1 parent 5fead49 commit aa789cec616ec9b9d448643ab3d7054d33200f5a @eriksundin eriksundin committed Mar 27, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 AFOAuth1Client/AFOAuth1Client.m
View
11 AFOAuth1Client/AFOAuth1Client.m
@@ -139,7 +139,7 @@ @interface AFOAuth1Client ()
@property (readwrite, nonatomic, copy) NSString *secret;
@property (readwrite, nonatomic, strong) id applicationLaunchNotificationObserver;
--(void)unregisterFromApplicationLaunchNotifications;
+-(void)removeApplicationLaunchNotificationObserver;
- (NSDictionary *)OAuthParameters;
- (NSString *)OAuthSignatureForMethod:(NSString *)method
@@ -182,10 +182,11 @@ - (id)initWithBaseURL:(NSURL *)url
- (void)dealloc
{
- [self unregisterFromApplicationLaunchNotifications];
+ [self removeApplicationLaunchNotificationObserver];
}
--(void)unregisterFromApplicationLaunchNotifications {
+-(void)removeApplicationLaunchNotificationObserver
+{
if (self.applicationLaunchNotificationObserver) {
[[NSNotificationCenter defaultCenter] removeObserver:self.applicationLaunchNotificationObserver];
self.applicationLaunchNotificationObserver = nil;
@@ -276,7 +277,7 @@ - (void)authorizeUsingOAuthWithRequestTokenPath:(NSString *)requestTokenPath
// Make sure not to register multiple notification observers.
// Handles the case where sign-in was cancelled by the user while in the external browser.
if (self.applicationLaunchNotificationObserver) {
- [self unregisterFromApplicationLaunchNotifications];
+ [self removeApplicationLaunchNotificationObserver];
}
self.applicationLaunchNotificationObserver = [[NSNotificationCenter defaultCenter]
@@ -302,7 +303,7 @@ - (void)authorizeUsingOAuthWithRequestTokenPath:(NSString *)requestTokenPath
}];
// Unregister from further notifications.
- [self unregisterFromApplicationLaunchNotifications];
+ [self removeApplicationLaunchNotificationObserver];
}];

0 comments on commit aa789ce

Please sign in to comment.
Something went wrong with that request. Please try again.