Browse Source

box integration: cosmetics

Felix Paul Kühne 10 years ago
parent
commit
79c0d94cdc

+ 4 - 3
Sources/VLCBoxController.m

@@ -89,7 +89,7 @@
     alert = [[UIAlertView alloc] initWithTitle: title
     alert = [[UIAlertView alloc] initWithTitle: title
                                        message: message
                                        message: message
                                       delegate: nil
                                       delegate: nil
-                             cancelButtonTitle: @"OK"
+                             cancelButtonTitle: NSLocalizedString(@"BUTTON_OK", nil)
                              otherButtonTitles: nil];
                              otherButtonTitles: nil];
     [alert show];
     [alert show];
 }
 }
@@ -186,7 +186,7 @@
     return NO;
     return NO;
 }
 }
 
 
-//just pick out Directories and suported formats.
+//just pick out Directories and supported formats.
 //if the resulting list contains less than 10 items try to get more
 //if the resulting list contains less than 10 items try to get more
 
 
 - (void)_listOfGoodFilesAndFolders
 - (void)_listOfGoodFilesAndFolders
@@ -194,7 +194,8 @@
     NSMutableArray *listOfGoodFilesAndFolders = [NSMutableArray new];
     NSMutableArray *listOfGoodFilesAndFolders = [NSMutableArray new];
     _maxOffset = _fileList.totalCount.intValue;
     _maxOffset = _fileList.totalCount.intValue;
     _offset += _fileList.numberOfEntries;
     _offset += _fileList.numberOfEntries;
-    for (int i = 0; i < _fileList.numberOfEntries; i++)
+    NSUInteger numberOfEntries = _fileList.numberOfEntries;
+    for (int i = 0; i < numberOfEntries; i++)
     {
     {
         BoxModel *boxFile = [_fileList modelAtIndex:i];
         BoxModel *boxFile = [_fileList modelAtIndex:i];
         BOOL isDirectory = [boxFile.type isEqualToString:BoxAPIItemTypeFolder];
         BOOL isDirectory = [boxFile.type isEqualToString:BoxAPIItemTypeFolder];

+ 1 - 1
Sources/VLCBoxTableViewController.h

@@ -2,7 +2,7 @@
  * VLCBoxTableViewController.h
  * VLCBoxTableViewController.h
  * VLC for iOS
  * VLC for iOS
  *****************************************************************************
  *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
+ * Copyright (c) 2014 VideoLAN. All rights reserved.
  * $Id$
  * $Id$
  *
  *
  * Authors: Carola Nitz <nitz.carola # googlemail.com>
  * Authors: Carola Nitz <nitz.carola # googlemail.com>

+ 1 - 1
Sources/VLCBoxTableViewController.m

@@ -251,7 +251,7 @@
     _selectedFile = nil;
     _selectedFile = nil;
 }
 }
 
 
-#pragma mark - google drive controller delegate
+#pragma mark - box controller delegate
 
 
 - (void)mediaListUpdated
 - (void)mediaListUpdated
 {
 {