Merge lp:~threeve/ubuntuone-ios-files/polish-and-shine into lp:ubuntuone-ios-files

Proposed by Jason Foreman
Status: Merged
Approved by: Zachery Bir
Approved revision: 50
Merged at revision: 44
Proposed branch: lp:~threeve/ubuntuone-ios-files/polish-and-shine
Merge into: lp:ubuntuone-ios-files
Diff against target: 640 lines (+304/-30)
13 files modified
Dependencies/RIButtonItem.m (+7/-0)
Files.xcodeproj/project.pbxproj (+18/-6)
Files/Files-Info.plist (+1/-1)
Files/FilesAppDelegate.m (+1/-1)
Files/U1AssetRepresenationDataProvider.m (+2/-2)
Files/U1AutoUploadsManager.m (+4/-4)
Files/U1FilesClient.m (+7/-6)
Files/U1FilesService.m (+3/-2)
Files/U1FolderViewController.m (+2/-2)
Files/U1LoginController.m (+8/-5)
Files/U1LoginController.xib (+245/-0)
Files/U1SettingsViewController.m (+1/-0)
Files/U1VolumesViewController.m (+5/-1)
To merge this branch: bzr merge lp:~threeve/ubuntuone-ios-files/polish-and-shine
Reviewer Review Type Date Requested Status
Zachery Bir Approve
Review via email: mp+85500@code.launchpad.net

Description of the change

Fixing leaks and warning, small visual tweaks

To post a comment you must log in.
Revision history for this message
Zachery Bir (urbanape) wrote :

I like it, once the conflict gets resolved. Replace 206-215 with:

   NSString *ext = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassFilenameExtension) autorelease];
   filename = [NSString stringWithFormat:@"IMG_%d.%@", [self nextPictureNumber], ext];

50. By Jason Foreman

Merge trunk

Revision history for this message
Zachery Bir (urbanape) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Assets/ic_folder.png'
0Binary files Assets/ic_folder.png 2011-08-31 14:56:30 +0000 and Assets/ic_folder.png 2011-12-13 16:37:23 +0000 differ0Binary files Assets/ic_folder.png 2011-08-31 14:56:30 +0000 and Assets/ic_folder.png 2011-12-13 16:37:23 +0000 differ
=== modified file 'Assets/ic_folder@2x.png'
1Binary files Assets/ic_folder@2x.png 2011-08-31 14:56:30 +0000 and Assets/ic_folder@2x.png 2011-12-13 16:37:23 +0000 differ1Binary files Assets/ic_folder@2x.png 2011-08-31 14:56:30 +0000 and Assets/ic_folder@2x.png 2011-12-13 16:37:23 +0000 differ
=== added file 'Assets/u1_folder.png'
2Binary files Assets/u1_folder.png 1970-01-01 00:00:00 +0000 and Assets/u1_folder.png 2011-12-13 16:37:23 +0000 differ2Binary files Assets/u1_folder.png 1970-01-01 00:00:00 +0000 and Assets/u1_folder.png 2011-12-13 16:37:23 +0000 differ
=== added file 'Assets/u1_folder@2x.png'
3Binary files Assets/u1_folder@2x.png 1970-01-01 00:00:00 +0000 and Assets/u1_folder@2x.png 2011-12-13 16:37:23 +0000 differ3Binary files Assets/u1_folder@2x.png 1970-01-01 00:00:00 +0000 and Assets/u1_folder@2x.png 2011-12-13 16:37:23 +0000 differ
=== modified file 'Dependencies/RIButtonItem.m'
--- Dependencies/RIButtonItem.m 2011-10-31 17:16:15 +0000
+++ Dependencies/RIButtonItem.m 2011-12-13 16:37:23 +0000
@@ -24,5 +24,12 @@
24 return newItem;24 return newItem;
25}25}
2626
27- (void)dealloc;
28{
29 [label release];
30 [action release];
31 [super dealloc];
32}
33
27@end34@end
2835
2936
=== modified file 'Files.xcodeproj/project.pbxproj'
--- Files.xcodeproj/project.pbxproj 2011-12-09 20:31:25 +0000
+++ Files.xcodeproj/project.pbxproj 2011-12-13 16:37:23 +0000
@@ -79,6 +79,7 @@
79 96733B10140DFD510074D545 /* SFHFKeychainUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B0F140DFD510074D545 /* SFHFKeychainUtils.m */; };79 96733B10140DFD510074D545 /* SFHFKeychainUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B0F140DFD510074D545 /* SFHFKeychainUtils.m */; };
80 96733B12140DFD6D0074D545 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96733B11140DFD6D0074D545 /* Security.framework */; };80 96733B12140DFD6D0074D545 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96733B11140DFD6D0074D545 /* Security.framework */; };
81 96733B15140E04940074D545 /* UIActionSheet+U1Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B14140E04940074D545 /* UIActionSheet+U1Additions.m */; };81 96733B15140E04940074D545 /* UIActionSheet+U1Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B14140E04940074D545 /* UIActionSheet+U1Additions.m */; };
82 96754B6E1496A7F3001D2A64 /* U1LoginController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */; };
82 969EF22913F8C10C00CEF6CB /* U1VolumesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */; };83 969EF22913F8C10C00CEF6CB /* U1VolumesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */; };
83 969EF22A13F8C10C00CEF6CB /* U1VolumesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */; };84 969EF22A13F8C10C00CEF6CB /* U1VolumesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */; };
84 96A1699C1430C95E00E4C990 /* 04-eye.png in Resources */ = {isa = PBXBuildFile; fileRef = 96A1699A1430C95E00E4C990 /* 04-eye.png */; };85 96A1699C1430C95E00E4C990 /* 04-eye.png in Resources */ = {isa = PBXBuildFile; fileRef = 96A1699A1430C95E00E4C990 /* 04-eye.png */; };
@@ -91,6 +92,8 @@
91 96B20E6E145F6AAE00D8ED69 /* 218-trash2@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B20E6C145F6AAE00D8ED69 /* 218-trash2@2x.png */; };92 96B20E6E145F6AAE00D8ED69 /* 218-trash2@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B20E6C145F6AAE00D8ED69 /* 218-trash2@2x.png */; };
92 96B20E78145F815500D8ED69 /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B20E77145F815500D8ED69 /* Reachability.m */; };93 96B20E78145F815500D8ED69 /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B20E77145F815500D8ED69 /* Reachability.m */; };
93 96B20E7A145F819300D8ED69 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */; };94 96B20E7A145F819300D8ED69 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */; };
95 96B2B77B1497042D0078D952 /* u1_folder.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B2B7791497042D0078D952 /* u1_folder.png */; };
96 96B2B77C1497042D0078D952 /* u1_folder@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B2B77A1497042D0078D952 /* u1_folder@2x.png */; };
94 96C12F0114842F6300E53FCA /* U1FilePreviewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */; };97 96C12F0114842F6300E53FCA /* U1FilePreviewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */; };
95 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */; };98 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */; };
96 96CAD3C71457823B007A496C /* NSDictionary+U1Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 96CAD3C61457823B007A496C /* NSDictionary+U1Additions.m */; };99 96CAD3C71457823B007A496C /* NSDictionary+U1Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 96CAD3C61457823B007A496C /* NSDictionary+U1Additions.m */; };
@@ -277,6 +280,7 @@
277 96733B11140DFD6D0074D545 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };280 96733B11140DFD6D0074D545 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
278 96733B13140E04940074D545 /* UIActionSheet+U1Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIActionSheet+U1Additions.h"; sourceTree = "<group>"; };281 96733B13140E04940074D545 /* UIActionSheet+U1Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIActionSheet+U1Additions.h"; sourceTree = "<group>"; };
279 96733B14140E04940074D545 /* UIActionSheet+U1Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIActionSheet+U1Additions.m"; sourceTree = "<group>"; };282 96733B14140E04940074D545 /* UIActionSheet+U1Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIActionSheet+U1Additions.m"; sourceTree = "<group>"; };
283 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1LoginController.xib; sourceTree = "<group>"; };
280 969EF22613F8C10C00CEF6CB /* U1VolumesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = U1VolumesViewController.h; sourceTree = "<group>"; };284 969EF22613F8C10C00CEF6CB /* U1VolumesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = U1VolumesViewController.h; sourceTree = "<group>"; };
281 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = U1VolumesViewController.m; sourceTree = "<group>"; };285 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = U1VolumesViewController.m; sourceTree = "<group>"; };
282 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1VolumesViewController.xib; sourceTree = "<group>"; };286 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1VolumesViewController.xib; sourceTree = "<group>"; };
@@ -294,6 +298,8 @@
294 96B20E76145F815500D8ED69 /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability.h; sourceTree = "<group>"; };298 96B20E76145F815500D8ED69 /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability.h; sourceTree = "<group>"; };
295 96B20E77145F815500D8ED69 /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Reachability.m; sourceTree = "<group>"; };299 96B20E77145F815500D8ED69 /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Reachability.m; sourceTree = "<group>"; };
296 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };300 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
301 96B2B7791497042D0078D952 /* u1_folder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = u1_folder.png; path = Assets/u1_folder.png; sourceTree = "<group>"; };
302 96B2B77A1497042D0078D952 /* u1_folder@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "u1_folder@2x.png"; path = "Assets/u1_folder@2x.png"; sourceTree = "<group>"; };
297 96C12EFE14842F6300E53FCA /* U1FilePreviewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = U1FilePreviewViewController.h; sourceTree = "<group>"; };303 96C12EFE14842F6300E53FCA /* U1FilePreviewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = U1FilePreviewViewController.h; sourceTree = "<group>"; };
298 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = U1FilePreviewViewController.m; sourceTree = "<group>"; };304 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = U1FilePreviewViewController.m; sourceTree = "<group>"; };
299 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1FilePreviewViewController.xib; sourceTree = "<group>"; };305 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1FilePreviewViewController.xib; sourceTree = "<group>"; };
@@ -495,6 +501,7 @@
495 96733AEF140DFAC60074D545 /* UOSSOCredentialsViewController.xib */,501 96733AEF140DFAC60074D545 /* UOSSOCredentialsViewController.xib */,
496 96733AF0140DFAC60074D545 /* U1LoginController.h */,502 96733AF0140DFAC60074D545 /* U1LoginController.h */,
497 96733AF1140DFAC60074D545 /* U1LoginController.m */,503 96733AF1140DFAC60074D545 /* U1LoginController.m */,
504 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */,
498 96733B0B140DFCCB0074D545 /* U1AccountManager.h */,505 96733B0B140DFCCB0074D545 /* U1AccountManager.h */,
499 96733B0C140DFCCB0074D545 /* U1AccountManager.m */,506 96733B0C140DFCCB0074D545 /* U1AccountManager.m */,
500 );507 );
@@ -504,6 +511,8 @@
504 96783E6513F8ABC70092C6A1 /* Assets */ = {511 96783E6513F8ABC70092C6A1 /* Assets */ = {
505 isa = PBXGroup;512 isa = PBXGroup;
506 children = (513 children = (
514 96B2B7791497042D0078D952 /* u1_folder.png */,
515 96B2B77A1497042D0078D952 /* u1_folder@2x.png */,
507 96327C041492A13100607EF3 /* navbar.png */,516 96327C041492A13100607EF3 /* navbar.png */,
508 96327C051492A13100607EF3 /* navbar@2x.png */,517 96327C051492A13100607EF3 /* navbar@2x.png */,
509 91D403601461ADE7005C66A8 /* upload.png */,518 91D403601461ADE7005C66A8 /* upload.png */,
@@ -824,9 +833,9 @@
824/* End PBXGroup section */833/* End PBXGroup section */
825834
826/* Begin PBXNativeTarget section */835/* Begin PBXNativeTarget section */
827 96E860B013F7251D0026783D /* Files */ = {836 96E860B013F7251D0026783D /* U1Files */ = {
828 isa = PBXNativeTarget;837 isa = PBXNativeTarget;
829 buildConfigurationList = 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "Files" */;838 buildConfigurationList = 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "U1Files" */;
830 buildPhases = (839 buildPhases = (
831 96E860AD13F7251D0026783D /* Sources */,840 96E860AD13F7251D0026783D /* Sources */,
832 96E860AE13F7251D0026783D /* Frameworks */,841 96E860AE13F7251D0026783D /* Frameworks */,
@@ -837,7 +846,7 @@
837 );846 );
838 dependencies = (847 dependencies = (
839 );848 );
840 name = Files;849 name = U1Files;
841 productName = Files;850 productName = Files;
842 productReference = 96E860B113F7251D0026783D /* Files.app */;851 productReference = 96E860B113F7251D0026783D /* Files.app */;
843 productType = "com.apple.product-type.application";852 productType = "com.apple.product-type.application";
@@ -881,7 +890,7 @@
881 projectDirPath = "";890 projectDirPath = "";
882 projectRoot = "";891 projectRoot = "";
883 targets = (892 targets = (
884 96E860B013F7251D0026783D /* Files */,893 96E860B013F7251D0026783D /* U1Files */,
885 96E860D913F7251D0026783D /* FilesTests */,894 96E860D913F7251D0026783D /* FilesTests */,
886 );895 );
887 };896 };
@@ -937,6 +946,9 @@
937 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */,946 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */,
938 96327C061492A13100607EF3 /* navbar.png in Resources */,947 96327C061492A13100607EF3 /* navbar.png in Resources */,
939 96327C071492A13100607EF3 /* navbar@2x.png in Resources */,948 96327C071492A13100607EF3 /* navbar@2x.png in Resources */,
949 96754B6E1496A7F3001D2A64 /* U1LoginController.xib in Resources */,
950 96B2B77B1497042D0078D952 /* u1_folder.png in Resources */,
951 96B2B77C1497042D0078D952 /* u1_folder@2x.png in Resources */,
940 );952 );
941 runOnlyForDeploymentPostprocessing = 0;953 runOnlyForDeploymentPostprocessing = 0;
942 };954 };
@@ -1076,7 +1088,7 @@
1076/* Begin PBXTargetDependency section */1088/* Begin PBXTargetDependency section */
1077 96E860E113F7251D0026783D /* PBXTargetDependency */ = {1089 96E860E113F7251D0026783D /* PBXTargetDependency */ = {
1078 isa = PBXTargetDependency;1090 isa = PBXTargetDependency;
1079 target = 96E860B013F7251D0026783D /* Files */;1091 target = 96E860B013F7251D0026783D /* U1Files */;
1080 targetProxy = 96E860E013F7251D0026783D /* PBXContainerItemProxy */;1092 targetProxy = 96E860E013F7251D0026783D /* PBXContainerItemProxy */;
1081 };1093 };
1082/* End PBXTargetDependency section */1094/* End PBXTargetDependency section */
@@ -1268,7 +1280,7 @@
1268 defaultConfigurationIsVisible = 0;1280 defaultConfigurationIsVisible = 0;
1269 defaultConfigurationName = Release;1281 defaultConfigurationName = Release;
1270 };1282 };
1271 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "Files" */ = {1283 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "U1Files" */ = {
1272 isa = XCConfigurationList;1284 isa = XCConfigurationList;
1273 buildConfigurations = (1285 buildConfigurations = (
1274 96E860EF13F7251D0026783D /* Debug */,1286 96E860EF13F7251D0026783D /* Debug */,
12751287
=== modified file 'Files/Files-Info.plist'
--- Files/Files-Info.plist 2011-12-13 02:15:46 +0000
+++ Files/Files-Info.plist 2011-12-13 16:37:23 +0000
@@ -5,7 +5,7 @@
5 <key>CFBundleDevelopmentRegion</key>5 <key>CFBundleDevelopmentRegion</key>
6 <string>en</string>6 <string>en</string>
7 <key>CFBundleDisplayName</key>7 <key>CFBundleDisplayName</key>
8 <string>${PRODUCT_NAME}</string>8 <string>U1 Files</string>
9 <key>CFBundleExecutable</key>9 <key>CFBundleExecutable</key>
10 <string>${EXECUTABLE_NAME}</string>10 <string>${EXECUTABLE_NAME}</string>
11 <key>CFBundleIconFile</key>11 <key>CFBundleIconFile</key>
1212
=== modified file 'Files/FilesAppDelegate.m'
--- Files/FilesAppDelegate.m 2011-12-06 19:44:22 +0000
+++ Files/FilesAppDelegate.m 2011-12-13 16:37:23 +0000
@@ -156,7 +156,7 @@
156 [self.volumesNavController setViewControllers:[NSArray arrayWithObject:volumesViewController]];156 [self.volumesNavController setViewControllers:[NSArray arrayWithObject:volumesViewController]];
157 U1UploadsPoolViewController *assetsViewController = [[[U1UploadsPoolViewController alloc] init] autorelease];157 U1UploadsPoolViewController *assetsViewController = [[[U1UploadsPoolViewController alloc] init] autorelease];
158 [self.cameraNavController setViewControllers:[NSArray arrayWithObject:assetsViewController]];158 [self.cameraNavController setViewControllers:[NSArray arrayWithObject:assetsViewController]];
159 U1SettingsViewController *settingsViewController = [[U1SettingsViewController alloc] initWithNibName:@"U1SettingsViewController" bundle:nil];159 U1SettingsViewController *settingsViewController = [[[U1SettingsViewController alloc] initWithNibName:@"U1SettingsViewController" bundle:nil] autorelease];
160 [self.settingsNavController setViewControllers:[NSArray arrayWithObject:settingsViewController]];160 [self.settingsNavController setViewControllers:[NSArray arrayWithObject:settingsViewController]];
161}161}
162162
163163
=== modified file 'Files/U1AssetRepresenationDataProvider.m'
--- Files/U1AssetRepresenationDataProvider.m 2011-12-08 14:17:47 +0000
+++ Files/U1AssetRepresenationDataProvider.m 2011-12-13 16:37:23 +0000
@@ -51,7 +51,7 @@
51 if (block)51 if (block)
52 {52 {
53 NSError *error = [NSError errorWithDomain:@"nonexistentAsset" code:1 userInfo:nil];53 NSError *error = [NSError errorWithDomain:@"nonexistentAsset" code:1 userInfo:nil];
54 block(nil, nil, nil, error);54 block(nil, nil, 0, error);
55 }55 }
56 }56 }
57 else57 else
@@ -60,7 +60,7 @@
60 uint8_t *buffer = (uint8_t*)malloc(representation.size);60 uint8_t *buffer = (uint8_t*)malloc(representation.size);
61 NSUInteger length = [representation getBytes:buffer fromOffset:0 length:representation.size error:nil];61 NSUInteger length = [representation getBytes:buffer fromOffset:0 length:representation.size error:nil];
62 NSData *imageData = [NSData dataWithBytesNoCopy:buffer length:length freeWhenDone:YES];62 NSData *imageData = [NSData dataWithBytesNoCopy:buffer length:length freeWhenDone:YES];
63 NSString *mimeType = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType);63 NSString *mimeType = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType) autorelease];
64 NSInputStream *dataStream = [NSInputStream inputStreamWithData:imageData];64 NSInputStream *dataStream = [NSInputStream inputStreamWithData:imageData];
65 if (block)65 if (block)
66 block(dataStream, mimeType, length, nil);66 block(dataStream, mimeType, length, nil);
6767
=== modified file 'Files/U1AutoUploadsManager.m'
--- Files/U1AutoUploadsManager.m 2011-12-12 23:06:17 +0000
+++ Files/U1AutoUploadsManager.m 2011-12-13 16:37:23 +0000
@@ -410,9 +410,9 @@
410 else410 else
411 {411 {
412 ALAssetRepresentation *representation = [asset defaultRepresentation];412 ALAssetRepresentation *representation = [asset defaultRepresentation];
413 NSString *mimetype = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType);413 NSString *mimetype = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType) autorelease];
414 414
415 U1AssetRepresenationDataProvider *provider = [[U1AssetRepresenationDataProvider alloc] init];415 U1AssetRepresenationDataProvider *provider = [[[U1AssetRepresenationDataProvider alloc] init] autorelease];
416 provider.assetURL = imageURL;416 provider.assetURL = imageURL;
417 417
418 [self.filesClient uploadContentDataProvider:provider418 [self.filesClient uploadContentDataProvider:provider
@@ -457,7 +457,7 @@
457 }457 }
458 else458 else
459 {459 {
460 NSString *ext = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassFilenameExtension);460 NSString *ext = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassFilenameExtension) autorelease];
461 filename = [NSString stringWithFormat:@"IMG_%d.%@", [self nextPictureNumber], ext];461 filename = [NSString stringWithFormat:@"IMG_%d.%@", [self nextPictureNumber], ext];
462 }462 }
463463
@@ -512,7 +512,7 @@
512 512
513 if ((![self isPending:assetToUpload.filename]) && (assetToUpload.generation == nil))513 if ((![self isPending:assetToUpload.filename]) && (assetToUpload.generation == nil))
514 {514 {
515 U1AssetRepresenationDataProvider *provider = [[U1AssetRepresenationDataProvider alloc] init];515 U1AssetRepresenationDataProvider *provider = [[[U1AssetRepresenationDataProvider alloc] init] autorelease];
516 provider.assetURL = [NSURL URLWithString:assetToUpload.url];516 provider.assetURL = [NSURL URLWithString:assetToUpload.url];
517 517
518 // Let's create an operation!518 // Let's create an operation!
519519
=== modified file 'Files/U1FilesClient.m'
--- Files/U1FilesClient.m 2011-12-09 19:56:28 +0000
+++ Files/U1FilesClient.m 2011-12-13 16:37:23 +0000
@@ -375,6 +375,8 @@
375 }375 }
376 376
377 U1UploadOperation *operation = [[U1UploadOperation alloc] init];377 U1UploadOperation *operation = [[U1UploadOperation alloc] init];
378 __block typeof(operation) operationRef = operation;
379
378 operation.dataProvider = dataProvider;380 operation.dataProvider = dataProvider;
379 operation.fileNode = node;381 operation.fileNode = node;
380 operation.mimetype = contentType;382 operation.mimetype = contentType;
@@ -384,8 +386,8 @@
384 dispatch_async(dispatch_get_main_queue(), ^{386 dispatch_async(dispatch_get_main_queue(), ^{
385387
386 NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:388 NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
387 operation.fileNode, @"node",389 operationRef.fileNode, @"node",
388 operation.fileInfo, @"fileInfo",390 operationRef.fileInfo, @"fileInfo",
389 nil];391 nil];
390 [[NSNotificationCenter defaultCenter] postNotificationName:U1FilesClientNodeStatusChangedNotification object:self userInfo:userInfo];392 [[NSNotificationCenter defaultCenter] postNotificationName:U1FilesClientNodeStatusChangedNotification object:self userInfo:userInfo];
391 393
@@ -396,18 +398,17 @@
396 progressBlock(sent, total);398 progressBlock(sent, total);
397 }399 }
398 };400 };
399
400 [operation setQueuePriority:priority];401 [operation setQueuePriority:priority];
401 [operation setCompletionBlock:^{402 [operation setCompletionBlock:^{
402 dispatch_async(dispatch_get_main_queue(), ^(void) {403 dispatch_async(dispatch_get_main_queue(), ^(void) {
403 if (operation.error == nil) // or the error is somehow unrecoverable (e.g., over quota)404 if (operationRef.error == nil) // or the error is somehow unrecoverable (e.g., over quota)
404 {405 {
405 [[NSNotificationCenter defaultCenter] postNotificationName:@"imageUploaded" object:nil];406 [[NSNotificationCenter defaultCenter] postNotificationName:@"imageUploaded" object:nil];
406 completionBlock(operation.fileNode, nil);407 completionBlock(operationRef.fileNode, nil);
407 }408 }
408 else409 else
409 {410 {
410 NSLog(@"Error trying to upload %@: %@", resourceName, operation.error);411 NSLog(@"Error trying to upload %@: %@", resourceName, operationRef.error);
411 // Try it again (this is brittle if the error isn't recoverable (e.g. over quota)412 // Try it again (this is brittle if the error isn't recoverable (e.g. over quota)
412 [self uploadContentDataProvider:dataProvider413 [self uploadContentDataProvider:dataProvider
413 toFolder:folderNode414 toFolder:folderNode
414415
=== modified file 'Files/U1FilesService.m'
--- Files/U1FilesService.m 2011-12-09 19:56:28 +0000
+++ Files/U1FilesService.m 2011-12-13 16:37:23 +0000
@@ -357,11 +357,12 @@
357 U1HTTPRequestOperation *httpOperation = [[U1HTTPRequestOperation alloc] initWithRequest:request dataCollector:collector];357 U1HTTPRequestOperation *httpOperation = [[U1HTTPRequestOperation alloc] initWithRequest:request dataCollector:collector];
358 [request release];358 [request release];
359 359
360 __block typeof(httpOperation) operationRef = httpOperation;
360 [httpOperation setCompletionBlock:^(void) {361 [httpOperation setCompletionBlock:^(void) {
361 362
362 id result = nil;363 id result = nil;
363 NSHTTPURLResponse *response = httpOperation.response;364 NSHTTPURLResponse *response = operationRef.response;
364 NSError *error = httpOperation.error;365 NSError *error = operationRef.error;
365 366
366 if ([response statusCode] == 401)367 if ([response statusCode] == 401)
367 {368 {
368369
=== modified file 'Files/U1FolderViewController.m'
--- Files/U1FolderViewController.m 2011-12-09 20:31:25 +0000
+++ Files/U1FolderViewController.m 2011-12-13 16:37:23 +0000
@@ -217,7 +217,7 @@
217 resultBlock:^(ALAsset *asset) {217 resultBlock:^(ALAsset *asset) {
218 ALAssetRepresentation *representation = [asset defaultRepresentation];218 ALAssetRepresentation *representation = [asset defaultRepresentation];
219 CFStringRef uti = (CFStringRef)[representation UTI];219 CFStringRef uti = (CFStringRef)[representation UTI];
220 NSString *mimetype = (id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType);220 NSString *mimetype = [(id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType) autorelease];
221 NSString *assetType = nil;221 NSString *assetType = nil;
222 if (UTTypeConformsTo(uti, kUTTypeImage))222 if (UTTypeConformsTo(uti, kUTTypeImage))
223 {223 {
@@ -237,7 +237,7 @@
237 [dateFormatter setDateStyle:NSDateFormatterMediumStyle];237 [dateFormatter setDateStyle:NSDateFormatterMediumStyle];
238 [dateFormatter setTimeStyle:NSDateFormatterMediumStyle];238 [dateFormatter setTimeStyle:NSDateFormatterMediumStyle];
239 239
240 NSString *ext = (id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension);240 NSString *ext = [(id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension) autorelease];
241 NSString *filename = [NSString stringWithFormat:@"%@ %@.%@", assetType, [dateFormatter stringFromDate:assetDate], ext];241 NSString *filename = [NSString stringWithFormat:@"%@ %@.%@", assetType, [dateFormatter stringFromDate:assetDate], ext];
242 [dateFormatter release];242 [dateFormatter release];
243 243
244244
=== modified file 'Files/U1LoginController.m'
--- Files/U1LoginController.m 2011-12-06 18:38:47 +0000
+++ Files/U1LoginController.m 2011-12-13 16:37:23 +0000
@@ -31,7 +31,8 @@
3131
3232
33@interface U1LoginController ()33@interface U1LoginController ()
34@property (retain) UIViewController *loginViewController;34@property (retain) IBOutlet UIViewController *loginViewController;
35@property (retain) IBOutlet UOSSOCredentialsViewController *rootController;
35@property (retain) NSOperationQueue *operationQueue;36@property (retain) NSOperationQueue *operationQueue;
36- (void)loginWithUsername:(NSString*)username password:(NSString*)password;37- (void)loginWithUsername:(NSString*)username password:(NSString*)password;
37- (void)handleError:(NSError*)error;38- (void)handleError:(NSError*)error;
@@ -40,14 +41,15 @@
4041
41@implementation U1LoginController42@implementation U1LoginController
4243
43@synthesize delegate, loginViewController, operationQueue;44@synthesize delegate, loginViewController, rootController, operationQueue;
4445
45- (id)init;46- (id)init;
46{47{
47 if (!(self = [super init]))48 if (!(self = [super init]))
48 return nil;49 return nil;
49 50
50 UOSSOCredentialsViewController *rootController = [[[UOSSOCredentialsViewController alloc] initWithNibName:@"UOSSOCredentialsViewController" bundle:nil] autorelease];51// UOSSOCredentialsViewController *rootController = [[[UOSSOCredentialsViewController alloc] initWithNibName:@"UOSSOCredentialsViewController" bundle:nil] autorelease];
52 [[UINib nibWithNibName:@"U1LoginController" bundle:nil] instantiateWithOwner:self options:nil];
51 rootController.title = NSLocalizedString(@"Log In to Ubuntu One", @"");53 rootController.title = NSLocalizedString(@"Log In to Ubuntu One", @"");
52 54
53 __block id this = self;55 __block id this = self;
@@ -56,10 +58,10 @@
56 [this loginWithUsername:username password:password];58 [this loginWithUsername:username password:password];
57 };59 };
58 60
59 UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootController];61// UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootController];
60// navController.navigationBar.barStyle = UIBarStyleBlack;62// navController.navigationBar.barStyle = UIBarStyleBlack;
61// navController.navigationBarHidden = YES;63// navController.navigationBarHidden = YES;
62 loginViewController = navController;64// loginViewController = navController;
63 65
64 operationQueue = [[NSOperationQueue alloc] init];66 operationQueue = [[NSOperationQueue alloc] init];
65 67
@@ -70,6 +72,7 @@
70{72{
71 delegate = nil;73 delegate = nil;
72 [loginViewController release];74 [loginViewController release];
75 [rootController release];
73 [operationQueue release];76 [operationQueue release];
74 [super dealloc];77 [super dealloc];
75}78}
7679
=== added file 'Files/U1LoginController.xib'
--- Files/U1LoginController.xib 1970-01-01 00:00:00 +0000
+++ Files/U1LoginController.xib 2011-12-13 16:37:23 +0000
@@ -0,0 +1,245 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
3 <data>
4 <int key="IBDocument.SystemTarget">1280</int>
5 <string key="IBDocument.SystemVersion">10K549</string>
6 <string key="IBDocument.InterfaceBuilderVersion">1938</string>
7 <string key="IBDocument.AppKitVersion">1038.36</string>
8 <string key="IBDocument.HIToolboxVersion">461.00</string>
9 <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10 <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
11 <string key="NS.object.0">933</string>
12 </object>
13 <array key="IBDocument.IntegratedClassDependencies">
14 <string>IBUINavigationItem</string>
15 <string>IBUIViewController</string>
16 <string>IBUINavigationBar</string>
17 <string>IBUINavigationController</string>
18 <string>IBProxyObject</string>
19 </array>
20 <array key="IBDocument.PluginDependencies">
21 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
22 </array>
23 <object class="NSMutableDictionary" key="IBDocument.Metadata">
24 <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
25 <integer value="1" key="NS.object.0"/>
26 </object>
27 <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
28 <object class="IBProxyObject" id="841351856">
29 <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
30 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
31 </object>
32 <object class="IBProxyObject" id="371349661">
33 <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
34 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
35 </object>
36 <object class="IBUINavigationController" id="497033572">
37 <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
38 <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
39 <int key="IBUIInterfaceOrientation">1</int>
40 <int key="interfaceOrientation">1</int>
41 </object>
42 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
43 <bool key="IBUIHorizontal">NO</bool>
44 <object class="IBUINavigationBar" key="IBUINavigationBar" id="18568225">
45 <nil key="NSNextResponder"/>
46 <int key="NSvFlags">256</int>
47 <string key="NSFrameSize">{0, 0}</string>
48 <bool key="IBUIOpaque">NO</bool>
49 <bool key="IBUIClipsSubviews">YES</bool>
50 <bool key="IBUIMultipleTouchEnabled">YES</bool>
51 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
52 </object>
53 <array class="NSMutableArray" key="IBUIViewControllers">
54 <object class="IBUIViewController" id="357211705">
55 <object class="IBUINavigationItem" key="IBUINavigationItem" id="866999870">
56 <reference key="IBUINavigationBar"/>
57 <string key="IBUITitle"/>
58 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
59 </object>
60 <reference key="IBUIParentViewController" ref="497033572"/>
61 <string key="IBUINibName">UOSSOCredentialsViewController</string>
62 <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
63 <int key="IBUIInterfaceOrientation">1</int>
64 <int key="interfaceOrientation">1</int>
65 </object>
66 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
67 <bool key="IBUIHorizontal">NO</bool>
68 </object>
69 </array>
70 </object>
71 </array>
72 <object class="IBObjectContainer" key="IBDocument.Objects">
73 <array class="NSMutableArray" key="connectionRecords">
74 <object class="IBConnectionRecord">
75 <object class="IBCocoaTouchOutletConnection" key="connection">
76 <string key="label">loginViewController</string>
77 <reference key="source" ref="841351856"/>
78 <reference key="destination" ref="497033572"/>
79 </object>
80 <int key="connectionID">6</int>
81 </object>
82 <object class="IBConnectionRecord">
83 <object class="IBCocoaTouchOutletConnection" key="connection">
84 <string key="label">rootController</string>
85 <reference key="source" ref="841351856"/>
86 <reference key="destination" ref="357211705"/>
87 </object>
88 <int key="connectionID">7</int>
89 </object>
90 </array>
91 <object class="IBMutableOrderedSet" key="objectRecords">
92 <array key="orderedObjects">
93 <object class="IBObjectRecord">
94 <int key="objectID">0</int>
95 <array key="object" id="0"/>
96 <reference key="children" ref="1000"/>
97 <nil key="parent"/>
98 </object>
99 <object class="IBObjectRecord">
100 <int key="objectID">-1</int>
101 <reference key="object" ref="841351856"/>
102 <reference key="parent" ref="0"/>
103 <string key="objectName">File's Owner</string>
104 </object>
105 <object class="IBObjectRecord">
106 <int key="objectID">-2</int>
107 <reference key="object" ref="371349661"/>
108 <reference key="parent" ref="0"/>
109 </object>
110 <object class="IBObjectRecord">
111 <int key="objectID">2</int>
112 <reference key="object" ref="497033572"/>
113 <array class="NSMutableArray" key="children">
114 <reference ref="18568225"/>
115 <reference ref="357211705"/>
116 </array>
117 <reference key="parent" ref="0"/>
118 </object>
119 <object class="IBObjectRecord">
120 <int key="objectID">3</int>
121 <reference key="object" ref="18568225"/>
122 <reference key="parent" ref="497033572"/>
123 </object>
124 <object class="IBObjectRecord">
125 <int key="objectID">4</int>
126 <reference key="object" ref="357211705"/>
127 <array class="NSMutableArray" key="children">
128 <reference ref="866999870"/>
129 </array>
130 <reference key="parent" ref="497033572"/>
131 </object>
132 <object class="IBObjectRecord">
133 <int key="objectID">5</int>
134 <reference key="object" ref="866999870"/>
135 <reference key="parent" ref="357211705"/>
136 </object>
137 </array>
138 </object>
139 <dictionary class="NSMutableDictionary" key="flattenedProperties">
140 <string key="-1.CustomClassName">U1LoginController</string>
141 <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
142 <string key="-2.CustomClassName">UIResponder</string>
143 <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
144 <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
145 <string key="3.CustomClassName">U1NavigationBar</string>
146 <string key="3.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
147 <string key="4.CustomClassName">UOSSOCredentialsViewController</string>
148 <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
149 <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
150 </dictionary>
151 <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
152 <nil key="activeLocalization"/>
153 <dictionary class="NSMutableDictionary" key="localizations"/>
154 <nil key="sourceID"/>
155 <int key="maxID">7</int>
156 </object>
157 <object class="IBClassDescriber" key="IBDocument.Classes">
158 <array class="NSMutableArray" key="referencedPartialClassDescriptions">
159 <object class="IBPartialClassDescription">
160 <string key="className">U1LoginController</string>
161 <string key="superclassName">NSObject</string>
162 <dictionary class="NSMutableDictionary" key="outlets">
163 <string key="loginViewController">UIViewController</string>
164 <string key="rootController">UOSSOCredentialsViewController</string>
165 </dictionary>
166 <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
167 <object class="IBToOneOutletInfo" key="loginViewController">
168 <string key="name">loginViewController</string>
169 <string key="candidateClassName">UIViewController</string>
170 </object>
171 <object class="IBToOneOutletInfo" key="rootController">
172 <string key="name">rootController</string>
173 <string key="candidateClassName">UOSSOCredentialsViewController</string>
174 </object>
175 </dictionary>
176 <object class="IBClassDescriptionSource" key="sourceIdentifier">
177 <string key="majorKey">IBProjectSource</string>
178 <string key="minorKey">./Classes/U1LoginController.h</string>
179 </object>
180 </object>
181 <object class="IBPartialClassDescription">
182 <string key="className">U1NavigationBar</string>
183 <string key="superclassName">UINavigationBar</string>
184 <object class="IBClassDescriptionSource" key="sourceIdentifier">
185 <string key="majorKey">IBProjectSource</string>
186 <string key="minorKey">./Classes/U1NavigationBar.h</string>
187 </object>
188 </object>
189 <object class="IBPartialClassDescription">
190 <string key="className">UOSSOCredentialsViewController</string>
191 <string key="superclassName">UIViewController</string>
192 <object class="NSMutableDictionary" key="actions">
193 <string key="NS.key.0">logIn:</string>
194 <string key="NS.object.0">id</string>
195 </object>
196 <object class="NSMutableDictionary" key="actionInfosByName">
197 <string key="NS.key.0">logIn:</string>
198 <object class="IBActionInfo" key="NS.object.0">
199 <string key="name">logIn:</string>
200 <string key="candidateClassName">id</string>
201 </object>
202 </object>
203 <dictionary class="NSMutableDictionary" key="outlets">
204 <string key="emailField">UITextField</string>
205 <string key="loginButton">UIButton</string>
206 <string key="passwordField">UITextField</string>
207 <string key="patternView">UIView</string>
208 <string key="spinner">UIActivityIndicatorView</string>
209 </dictionary>
210 <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
211 <object class="IBToOneOutletInfo" key="emailField">
212 <string key="name">emailField</string>
213 <string key="candidateClassName">UITextField</string>
214 </object>
215 <object class="IBToOneOutletInfo" key="loginButton">
216 <string key="name">loginButton</string>
217 <string key="candidateClassName">UIButton</string>
218 </object>
219 <object class="IBToOneOutletInfo" key="passwordField">
220 <string key="name">passwordField</string>
221 <string key="candidateClassName">UITextField</string>
222 </object>
223 <object class="IBToOneOutletInfo" key="patternView">
224 <string key="name">patternView</string>
225 <string key="candidateClassName">UIView</string>
226 </object>
227 <object class="IBToOneOutletInfo" key="spinner">
228 <string key="name">spinner</string>
229 <string key="candidateClassName">UIActivityIndicatorView</string>
230 </object>
231 </dictionary>
232 <object class="IBClassDescriptionSource" key="sourceIdentifier">
233 <string key="majorKey">IBProjectSource</string>
234 <string key="minorKey">./Classes/UOSSOCredentialsViewController.h</string>
235 </object>
236 </object>
237 </array>
238 </object>
239 <int key="IBDocument.localizationMode">0</int>
240 <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
241 <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
242 <int key="IBDocument.defaultPropertyAccessControl">3</int>
243 <string key="IBCocoaTouchPluginVersion">933</string>
244 </data>
245</archive>
0246
=== modified file 'Files/U1SettingsViewController.m'
--- Files/U1SettingsViewController.m 2011-12-09 20:31:25 +0000
+++ Files/U1SettingsViewController.m 2011-12-13 16:37:23 +0000
@@ -219,6 +219,7 @@
219 NSString *usedString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"used_bytes"]];219 NSString *usedString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"used_bytes"]];
220 NSString *totalString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"max_bytes"]];220 NSString *totalString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"max_bytes"]];
221 [cell.detailTextLabel setText:[NSString stringWithFormat:storageFormat, usedString, totalString]];221 [cell.detailTextLabel setText:[NSString stringWithFormat:storageFormat, usedString, totalString]];
222 [byteSizeTransformer release];
222 break;223 break;
223 }224 }
224 }225 }
225226
=== modified file 'Files/U1VolumesViewController.m'
--- Files/U1VolumesViewController.m 2011-12-09 20:31:25 +0000
+++ Files/U1VolumesViewController.m 2011-12-13 16:37:23 +0000
@@ -106,9 +106,13 @@
106 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"U1FolderCell"] autorelease];106 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"U1FolderCell"] autorelease];
107 [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];107 [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
108 [cell setSelectionStyle:UITableViewCellSelectionStyleGray];108 [cell setSelectionStyle:UITableViewCellSelectionStyleGray];
109 [cell.imageView setImage:[UIImage imageNamed:@"ic_folder"]];
110 }109 }
111 U1Volume *volume = [self.cloudFoldersFetchController objectAtIndexPath:indexPath];110 U1Volume *volume = [self.cloudFoldersFetchController objectAtIndexPath:indexPath];
111 [cell.imageView setImage:[UIImage imageNamed:@"ic_folder"]];
112 if ([volume.kind isEqualToString:@"root"])
113 {
114 [cell.imageView setImage:[UIImage imageNamed:@"u1_folder"]];
115 }
112 NSString *volumePath = volume.path;116 NSString *volumePath = volume.path;
113 if ([@"~/.ubuntuone/Purchased from Ubuntu One" isEqualToString:volumePath])117 if ([@"~/.ubuntuone/Purchased from Ubuntu One" isEqualToString:volumePath])
114 volumePath = @"Purchased Music";118 volumePath = @"Purchased Music";

Subscribers

People subscribed via source and target branches