From fc4d67e5c8743661c4654e5d5d0f76fe146f2040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dudek?= Date: Thu, 29 Oct 2015 16:47:13 +0100 Subject: [PATCH] Minor typo corrections --- OneDriveSDK/Auth/ODBaseAuthProvider.m | 14 +++++++------- docs/items.md | 14 ++++++-------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/OneDriveSDK/Auth/ODBaseAuthProvider.m b/OneDriveSDK/Auth/ODBaseAuthProvider.m index 2c33f58..bcb8b90 100644 --- a/OneDriveSDK/Auth/ODBaseAuthProvider.m +++ b/OneDriveSDK/Auth/ODBaseAuthProvider.m @@ -60,7 +60,7 @@ - (void) authenticateWithViewController:(UIViewController *)viewController compl success:^(NSURL *endURL, NSError *error){ [self authorizationFlowCompletedWithURL:endURL error:error - presentingViewControlelr:presentingViewController + presentingViewController:presentingViewController completion:completionHandler]; }]; } @@ -69,10 +69,10 @@ - (void) authenticateWithViewController:(UIViewController *)viewController compl [[ODAuthenticationViewController alloc] initWithStartURL:[self authURL] endURL:[NSURL URLWithString:self.serviceInfo.redirectURL] success:^(NSURL *endURL, NSError *error){ - [self authorizationFlowCompletedWithURL:endURL - error:error - presentingViewControlelr:authViewController - completion:completionHandler]; + [self authorizationFlowCompletedWithURL:endURL + error:error + presentingViewController:authViewController + completion:completionHandler]; }]; dispatch_async(dispatch_get_main_queue(), ^{ @@ -91,8 +91,8 @@ - (void) authenticateWithViewController:(UIViewController *)viewController compl - (void)authorizationFlowCompletedWithURL:(NSURL *)endURL error:(NSError *)error - presentingViewControlelr:(UIViewController *)presentingViewController - completion:(AuthCompletion)completionHandler + presentingViewController:(UIViewController *)presentingViewController + completion:(AuthCompletion)completionHandler { // Always remove the auth view when we finished loading. dispatch_async(dispatch_get_main_queue(), ^{ diff --git a/docs/items.md b/docs/items.md index 4c2871f..b29f7d7 100644 --- a/docs/items.md +++ b/docs/items.md @@ -44,7 +44,7 @@ Delete an Item --------------- ```objc [[[[odClient drive] items:] request] deleteWithCompletion:^(NSError *error){ - //Returns an error if there was one. + //Returns an error if there was one. }]; ``` @@ -57,8 +57,8 @@ More info about collections [here](/docs/collections.md). ```objc [[[[odClient drive] items:] children] getWithCompletion: ^(ODCollection *children, ODChilrenCollectionRequest *nextRequest, NSError *error){ - // Returns an ODCollection, - // another children request if there are more children to get, + // Returns an ODCollection, + // another children request if there are more children to get, // and an error if one occurred. }]; ``` @@ -69,7 +69,7 @@ Downloading and uploading contents ```objc ODItemContentRequest *request = [[[odClient drive] items:] contentRequest]; -[request downloadWithCompletion:^(NSURL *filePath, NSURLResponse *urlResponse, NSError){ +[request downloadWithCompletion:^(NSURL *filePath, NSURLResponse *urlResponse, NSError *error){ // The file path to the item on disk. This is a temporary file and will be removed // after the block is done executing. }]; @@ -79,7 +79,7 @@ ODItemContentRequest *request = [[[odClient drive] items:] contentReque }]; [request uploadFromData: completion:*(ODItem *item, NSError *error){ - // Returns the item that was just uploaded from memory. + // Returns the item that was just uploaded from memory. }]; ``` @@ -125,12 +125,10 @@ newParent.id = ; ODItemCopyRequest *copyRequest = [[[[odClient drive] items:] copyWithName:@"new item name" parentReference:newParent] request]; [copyRequest executeWithCompletion:^(ODItem *item, ODAsyncOperationStatus *status, NSError *error){ - // This handler will be called whenever there is an update + // This handler will be called whenever there is an update // from the copy operation, the operation has finished, or there was an error. // only one of the parameters will be non nil at a time. }]; ``` The executeWithCompletion method returns an ODAsyncURLSessionDataTask, which can be used to monitor the request via the progress property. - -