Merge lp:~threeve/ubuntuone-ios-files/polish-and-shine into lp:ubuntuone-ios-files
- polish-and-shine
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zachery Bir | Approve | ||
Review via email: mp+85500@code.launchpad.net |
Commit message
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 : | # |
- 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
1 | === modified file 'Assets/ic_folder.png' | |||
2 | 0 | Binary 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 | 0 | Binary 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 |
3 | === modified file 'Assets/ic_folder@2x.png' | |||
4 | 1 | Binary 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 | 1 | Binary 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 |
5 | === added file 'Assets/u1_folder.png' | |||
6 | 2 | Binary 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 | 2 | Binary 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 |
7 | === added file 'Assets/u1_folder@2x.png' | |||
8 | 3 | Binary 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 | 3 | Binary 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 |
9 | === modified file 'Dependencies/RIButtonItem.m' | |||
10 | --- Dependencies/RIButtonItem.m 2011-10-31 17:16:15 +0000 | |||
11 | +++ Dependencies/RIButtonItem.m 2011-12-13 16:37:23 +0000 | |||
12 | @@ -24,5 +24,12 @@ | |||
13 | 24 | return newItem; | 24 | return newItem; |
14 | 25 | } | 25 | } |
15 | 26 | 26 | ||
16 | 27 | - (void)dealloc; | ||
17 | 28 | { | ||
18 | 29 | [label release]; | ||
19 | 30 | [action release]; | ||
20 | 31 | [super dealloc]; | ||
21 | 32 | } | ||
22 | 33 | |||
23 | 27 | @end | 34 | @end |
24 | 28 | 35 | ||
25 | 29 | 36 | ||
26 | === modified file 'Files.xcodeproj/project.pbxproj' | |||
27 | --- Files.xcodeproj/project.pbxproj 2011-12-09 20:31:25 +0000 | |||
28 | +++ Files.xcodeproj/project.pbxproj 2011-12-13 16:37:23 +0000 | |||
29 | @@ -79,6 +79,7 @@ | |||
30 | 79 | 96733B10140DFD510074D545 /* SFHFKeychainUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B0F140DFD510074D545 /* SFHFKeychainUtils.m */; }; | 79 | 96733B10140DFD510074D545 /* SFHFKeychainUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 96733B0F140DFD510074D545 /* SFHFKeychainUtils.m */; }; |
31 | 80 | 96733B12140DFD6D0074D545 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96733B11140DFD6D0074D545 /* Security.framework */; }; | 80 | 96733B12140DFD6D0074D545 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96733B11140DFD6D0074D545 /* Security.framework */; }; |
32 | 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 */; }; |
33 | 82 | 96754B6E1496A7F3001D2A64 /* U1LoginController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */; }; | ||
34 | 82 | 969EF22913F8C10C00CEF6CB /* U1VolumesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */; }; | 83 | 969EF22913F8C10C00CEF6CB /* U1VolumesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 969EF22713F8C10C00CEF6CB /* U1VolumesViewController.m */; }; |
35 | 83 | 969EF22A13F8C10C00CEF6CB /* U1VolumesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */; }; | 84 | 969EF22A13F8C10C00CEF6CB /* U1VolumesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 969EF22813F8C10C00CEF6CB /* U1VolumesViewController.xib */; }; |
36 | 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 */; }; |
37 | @@ -91,6 +92,8 @@ | |||
38 | 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 */; }; |
39 | 92 | 96B20E78145F815500D8ED69 /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B20E77145F815500D8ED69 /* Reachability.m */; }; | 93 | 96B20E78145F815500D8ED69 /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B20E77145F815500D8ED69 /* Reachability.m */; }; |
40 | 93 | 96B20E7A145F819300D8ED69 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */; }; | 94 | 96B20E7A145F819300D8ED69 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96B20E79145F819200D8ED69 /* SystemConfiguration.framework */; }; |
41 | 95 | 96B2B77B1497042D0078D952 /* u1_folder.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B2B7791497042D0078D952 /* u1_folder.png */; }; | ||
42 | 96 | 96B2B77C1497042D0078D952 /* u1_folder@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 96B2B77A1497042D0078D952 /* u1_folder@2x.png */; }; | ||
43 | 94 | 96C12F0114842F6300E53FCA /* U1FilePreviewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */; }; | 97 | 96C12F0114842F6300E53FCA /* U1FilePreviewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96C12EFF14842F6300E53FCA /* U1FilePreviewViewController.m */; }; |
44 | 95 | 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */; }; | 98 | 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 96C12F0014842F6300E53FCA /* U1FilePreviewViewController.xib */; }; |
45 | 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 */; }; |
46 | @@ -277,6 +280,7 @@ | |||
47 | 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; }; |
48 | 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>"; }; |
49 | 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>"; }; |
50 | 283 | 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = U1LoginController.xib; sourceTree = "<group>"; }; | ||
51 | 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>"; }; |
52 | 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>"; }; |
53 | 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>"; }; |
54 | @@ -294,6 +298,8 @@ | |||
55 | 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>"; }; |
56 | 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>"; }; |
57 | 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; }; |
58 | 301 | 96B2B7791497042D0078D952 /* u1_folder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = u1_folder.png; path = Assets/u1_folder.png; sourceTree = "<group>"; }; | ||
59 | 302 | 96B2B77A1497042D0078D952 /* u1_folder@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "u1_folder@2x.png"; path = "Assets/u1_folder@2x.png"; sourceTree = "<group>"; }; | ||
60 | 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>"; }; |
61 | 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>"; }; |
62 | 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>"; }; |
63 | @@ -495,6 +501,7 @@ | |||
64 | 495 | 96733AEF140DFAC60074D545 /* UOSSOCredentialsViewController.xib */, | 501 | 96733AEF140DFAC60074D545 /* UOSSOCredentialsViewController.xib */, |
65 | 496 | 96733AF0140DFAC60074D545 /* U1LoginController.h */, | 502 | 96733AF0140DFAC60074D545 /* U1LoginController.h */, |
66 | 497 | 96733AF1140DFAC60074D545 /* U1LoginController.m */, | 503 | 96733AF1140DFAC60074D545 /* U1LoginController.m */, |
67 | 504 | 96754B6D1496A7F3001D2A64 /* U1LoginController.xib */, | ||
68 | 498 | 96733B0B140DFCCB0074D545 /* U1AccountManager.h */, | 505 | 96733B0B140DFCCB0074D545 /* U1AccountManager.h */, |
69 | 499 | 96733B0C140DFCCB0074D545 /* U1AccountManager.m */, | 506 | 96733B0C140DFCCB0074D545 /* U1AccountManager.m */, |
70 | 500 | ); | 507 | ); |
71 | @@ -504,6 +511,8 @@ | |||
72 | 504 | 96783E6513F8ABC70092C6A1 /* Assets */ = { | 511 | 96783E6513F8ABC70092C6A1 /* Assets */ = { |
73 | 505 | isa = PBXGroup; | 512 | isa = PBXGroup; |
74 | 506 | children = ( | 513 | children = ( |
75 | 514 | 96B2B7791497042D0078D952 /* u1_folder.png */, | ||
76 | 515 | 96B2B77A1497042D0078D952 /* u1_folder@2x.png */, | ||
77 | 507 | 96327C041492A13100607EF3 /* navbar.png */, | 516 | 96327C041492A13100607EF3 /* navbar.png */, |
78 | 508 | 96327C051492A13100607EF3 /* navbar@2x.png */, | 517 | 96327C051492A13100607EF3 /* navbar@2x.png */, |
79 | 509 | 91D403601461ADE7005C66A8 /* upload.png */, | 518 | 91D403601461ADE7005C66A8 /* upload.png */, |
80 | @@ -824,9 +833,9 @@ | |||
81 | 824 | /* End PBXGroup section */ | 833 | /* End PBXGroup section */ |
82 | 825 | 834 | ||
83 | 826 | /* Begin PBXNativeTarget section */ | 835 | /* Begin PBXNativeTarget section */ |
85 | 827 | 96E860B013F7251D0026783D /* Files */ = { | 836 | 96E860B013F7251D0026783D /* U1Files */ = { |
86 | 828 | isa = PBXNativeTarget; | 837 | isa = PBXNativeTarget; |
88 | 829 | buildConfigurationList = 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "Files" */; | 838 | buildConfigurationList = 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "U1Files" */; |
89 | 830 | buildPhases = ( | 839 | buildPhases = ( |
90 | 831 | 96E860AD13F7251D0026783D /* Sources */, | 840 | 96E860AD13F7251D0026783D /* Sources */, |
91 | 832 | 96E860AE13F7251D0026783D /* Frameworks */, | 841 | 96E860AE13F7251D0026783D /* Frameworks */, |
92 | @@ -837,7 +846,7 @@ | |||
93 | 837 | ); | 846 | ); |
94 | 838 | dependencies = ( | 847 | dependencies = ( |
95 | 839 | ); | 848 | ); |
97 | 840 | name = Files; | 849 | name = U1Files; |
98 | 841 | productName = Files; | 850 | productName = Files; |
99 | 842 | productReference = 96E860B113F7251D0026783D /* Files.app */; | 851 | productReference = 96E860B113F7251D0026783D /* Files.app */; |
100 | 843 | productType = "com.apple.product-type.application"; | 852 | productType = "com.apple.product-type.application"; |
101 | @@ -881,7 +890,7 @@ | |||
102 | 881 | projectDirPath = ""; | 890 | projectDirPath = ""; |
103 | 882 | projectRoot = ""; | 891 | projectRoot = ""; |
104 | 883 | targets = ( | 892 | targets = ( |
106 | 884 | 96E860B013F7251D0026783D /* Files */, | 893 | 96E860B013F7251D0026783D /* U1Files */, |
107 | 885 | 96E860D913F7251D0026783D /* FilesTests */, | 894 | 96E860D913F7251D0026783D /* FilesTests */, |
108 | 886 | ); | 895 | ); |
109 | 887 | }; | 896 | }; |
110 | @@ -937,6 +946,9 @@ | |||
111 | 937 | 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */, | 946 | 96C12F0214842F6300E53FCA /* U1FilePreviewViewController.xib in Resources */, |
112 | 938 | 96327C061492A13100607EF3 /* navbar.png in Resources */, | 947 | 96327C061492A13100607EF3 /* navbar.png in Resources */, |
113 | 939 | 96327C071492A13100607EF3 /* navbar@2x.png in Resources */, | 948 | 96327C071492A13100607EF3 /* navbar@2x.png in Resources */, |
114 | 949 | 96754B6E1496A7F3001D2A64 /* U1LoginController.xib in Resources */, | ||
115 | 950 | 96B2B77B1497042D0078D952 /* u1_folder.png in Resources */, | ||
116 | 951 | 96B2B77C1497042D0078D952 /* u1_folder@2x.png in Resources */, | ||
117 | 940 | ); | 952 | ); |
118 | 941 | runOnlyForDeploymentPostprocessing = 0; | 953 | runOnlyForDeploymentPostprocessing = 0; |
119 | 942 | }; | 954 | }; |
120 | @@ -1076,7 +1088,7 @@ | |||
121 | 1076 | /* Begin PBXTargetDependency section */ | 1088 | /* Begin PBXTargetDependency section */ |
122 | 1077 | 96E860E113F7251D0026783D /* PBXTargetDependency */ = { | 1089 | 96E860E113F7251D0026783D /* PBXTargetDependency */ = { |
123 | 1078 | isa = PBXTargetDependency; | 1090 | isa = PBXTargetDependency; |
125 | 1079 | target = 96E860B013F7251D0026783D /* Files */; | 1091 | target = 96E860B013F7251D0026783D /* U1Files */; |
126 | 1080 | targetProxy = 96E860E013F7251D0026783D /* PBXContainerItemProxy */; | 1092 | targetProxy = 96E860E013F7251D0026783D /* PBXContainerItemProxy */; |
127 | 1081 | }; | 1093 | }; |
128 | 1082 | /* End PBXTargetDependency section */ | 1094 | /* End PBXTargetDependency section */ |
129 | @@ -1268,7 +1280,7 @@ | |||
130 | 1268 | defaultConfigurationIsVisible = 0; | 1280 | defaultConfigurationIsVisible = 0; |
131 | 1269 | defaultConfigurationName = Release; | 1281 | defaultConfigurationName = Release; |
132 | 1270 | }; | 1282 | }; |
134 | 1271 | 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "Files" */ = { | 1283 | 96E860EE13F7251D0026783D /* Build configuration list for PBXNativeTarget "U1Files" */ = { |
135 | 1272 | isa = XCConfigurationList; | 1284 | isa = XCConfigurationList; |
136 | 1273 | buildConfigurations = ( | 1285 | buildConfigurations = ( |
137 | 1274 | 96E860EF13F7251D0026783D /* Debug */, | 1286 | 96E860EF13F7251D0026783D /* Debug */, |
138 | 1275 | 1287 | ||
139 | === modified file 'Files/Files-Info.plist' | |||
140 | --- Files/Files-Info.plist 2011-12-13 02:15:46 +0000 | |||
141 | +++ Files/Files-Info.plist 2011-12-13 16:37:23 +0000 | |||
142 | @@ -5,7 +5,7 @@ | |||
143 | 5 | <key>CFBundleDevelopmentRegion</key> | 5 | <key>CFBundleDevelopmentRegion</key> |
144 | 6 | <string>en</string> | 6 | <string>en</string> |
145 | 7 | <key>CFBundleDisplayName</key> | 7 | <key>CFBundleDisplayName</key> |
147 | 8 | <string>${PRODUCT_NAME}</string> | 8 | <string>U1 Files</string> |
148 | 9 | <key>CFBundleExecutable</key> | 9 | <key>CFBundleExecutable</key> |
149 | 10 | <string>${EXECUTABLE_NAME}</string> | 10 | <string>${EXECUTABLE_NAME}</string> |
150 | 11 | <key>CFBundleIconFile</key> | 11 | <key>CFBundleIconFile</key> |
151 | 12 | 12 | ||
152 | === modified file 'Files/FilesAppDelegate.m' | |||
153 | --- Files/FilesAppDelegate.m 2011-12-06 19:44:22 +0000 | |||
154 | +++ Files/FilesAppDelegate.m 2011-12-13 16:37:23 +0000 | |||
155 | @@ -156,7 +156,7 @@ | |||
156 | 156 | [self.volumesNavController setViewControllers:[NSArray arrayWithObject:volumesViewController]]; | 156 | [self.volumesNavController setViewControllers:[NSArray arrayWithObject:volumesViewController]]; |
157 | 157 | U1UploadsPoolViewController *assetsViewController = [[[U1UploadsPoolViewController alloc] init] autorelease]; | 157 | U1UploadsPoolViewController *assetsViewController = [[[U1UploadsPoolViewController alloc] init] autorelease]; |
158 | 158 | [self.cameraNavController setViewControllers:[NSArray arrayWithObject:assetsViewController]]; | 158 | [self.cameraNavController setViewControllers:[NSArray arrayWithObject:assetsViewController]]; |
160 | 159 | U1SettingsViewController *settingsViewController = [[U1SettingsViewController alloc] initWithNibName:@"U1SettingsViewController" bundle:nil]; | 159 | U1SettingsViewController *settingsViewController = [[[U1SettingsViewController alloc] initWithNibName:@"U1SettingsViewController" bundle:nil] autorelease]; |
161 | 160 | [self.settingsNavController setViewControllers:[NSArray arrayWithObject:settingsViewController]]; | 160 | [self.settingsNavController setViewControllers:[NSArray arrayWithObject:settingsViewController]]; |
162 | 161 | } | 161 | } |
163 | 162 | 162 | ||
164 | 163 | 163 | ||
165 | === modified file 'Files/U1AssetRepresenationDataProvider.m' | |||
166 | --- Files/U1AssetRepresenationDataProvider.m 2011-12-08 14:17:47 +0000 | |||
167 | +++ Files/U1AssetRepresenationDataProvider.m 2011-12-13 16:37:23 +0000 | |||
168 | @@ -51,7 +51,7 @@ | |||
169 | 51 | if (block) | 51 | if (block) |
170 | 52 | { | 52 | { |
171 | 53 | NSError *error = [NSError errorWithDomain:@"nonexistentAsset" code:1 userInfo:nil]; | 53 | NSError *error = [NSError errorWithDomain:@"nonexistentAsset" code:1 userInfo:nil]; |
173 | 54 | block(nil, nil, nil, error); | 54 | block(nil, nil, 0, error); |
174 | 55 | } | 55 | } |
175 | 56 | } | 56 | } |
176 | 57 | else | 57 | else |
177 | @@ -60,7 +60,7 @@ | |||
178 | 60 | uint8_t *buffer = (uint8_t*)malloc(representation.size); | 60 | uint8_t *buffer = (uint8_t*)malloc(representation.size); |
179 | 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]; |
180 | 62 | NSData *imageData = [NSData dataWithBytesNoCopy:buffer length:length freeWhenDone:YES]; | 62 | NSData *imageData = [NSData dataWithBytesNoCopy:buffer length:length freeWhenDone:YES]; |
182 | 63 | NSString *mimeType = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType); | 63 | NSString *mimeType = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType) autorelease]; |
183 | 64 | NSInputStream *dataStream = [NSInputStream inputStreamWithData:imageData]; | 64 | NSInputStream *dataStream = [NSInputStream inputStreamWithData:imageData]; |
184 | 65 | if (block) | 65 | if (block) |
185 | 66 | block(dataStream, mimeType, length, nil); | 66 | block(dataStream, mimeType, length, nil); |
186 | 67 | 67 | ||
187 | === modified file 'Files/U1AutoUploadsManager.m' | |||
188 | --- Files/U1AutoUploadsManager.m 2011-12-12 23:06:17 +0000 | |||
189 | +++ Files/U1AutoUploadsManager.m 2011-12-13 16:37:23 +0000 | |||
190 | @@ -410,9 +410,9 @@ | |||
191 | 410 | else | 410 | else |
192 | 411 | { | 411 | { |
193 | 412 | ALAssetRepresentation *representation = [asset defaultRepresentation]; | 412 | ALAssetRepresentation *representation = [asset defaultRepresentation]; |
195 | 413 | NSString *mimetype = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType); | 413 | NSString *mimetype = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassMIMEType) autorelease]; |
196 | 414 | 414 | ||
198 | 415 | U1AssetRepresenationDataProvider *provider = [[U1AssetRepresenationDataProvider alloc] init]; | 415 | U1AssetRepresenationDataProvider *provider = [[[U1AssetRepresenationDataProvider alloc] init] autorelease]; |
199 | 416 | provider.assetURL = imageURL; | 416 | provider.assetURL = imageURL; |
200 | 417 | 417 | ||
201 | 418 | [self.filesClient uploadContentDataProvider:provider | 418 | [self.filesClient uploadContentDataProvider:provider |
202 | @@ -457,7 +457,7 @@ | |||
203 | 457 | } | 457 | } |
204 | 458 | else | 458 | else |
205 | 459 | { | 459 | { |
207 | 460 | NSString *ext = (id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassFilenameExtension); | 460 | NSString *ext = [(id)UTTypeCopyPreferredTagWithClass((CFStringRef)[representation UTI], kUTTagClassFilenameExtension) autorelease]; |
208 | 461 | filename = [NSString stringWithFormat:@"IMG_%d.%@", [self nextPictureNumber], ext]; | 461 | filename = [NSString stringWithFormat:@"IMG_%d.%@", [self nextPictureNumber], ext]; |
209 | 462 | } | 462 | } |
210 | 463 | 463 | ||
211 | @@ -512,7 +512,7 @@ | |||
212 | 512 | 512 | ||
213 | 513 | if ((![self isPending:assetToUpload.filename]) && (assetToUpload.generation == nil)) | 513 | if ((![self isPending:assetToUpload.filename]) && (assetToUpload.generation == nil)) |
214 | 514 | { | 514 | { |
216 | 515 | U1AssetRepresenationDataProvider *provider = [[U1AssetRepresenationDataProvider alloc] init]; | 515 | U1AssetRepresenationDataProvider *provider = [[[U1AssetRepresenationDataProvider alloc] init] autorelease]; |
217 | 516 | provider.assetURL = [NSURL URLWithString:assetToUpload.url]; | 516 | provider.assetURL = [NSURL URLWithString:assetToUpload.url]; |
218 | 517 | 517 | ||
219 | 518 | // Let's create an operation! | 518 | // Let's create an operation! |
220 | 519 | 519 | ||
221 | === modified file 'Files/U1FilesClient.m' | |||
222 | --- Files/U1FilesClient.m 2011-12-09 19:56:28 +0000 | |||
223 | +++ Files/U1FilesClient.m 2011-12-13 16:37:23 +0000 | |||
224 | @@ -375,6 +375,8 @@ | |||
225 | 375 | } | 375 | } |
226 | 376 | 376 | ||
227 | 377 | U1UploadOperation *operation = [[U1UploadOperation alloc] init]; | 377 | U1UploadOperation *operation = [[U1UploadOperation alloc] init]; |
228 | 378 | __block typeof(operation) operationRef = operation; | ||
229 | 379 | |||
230 | 378 | operation.dataProvider = dataProvider; | 380 | operation.dataProvider = dataProvider; |
231 | 379 | operation.fileNode = node; | 381 | operation.fileNode = node; |
232 | 380 | operation.mimetype = contentType; | 382 | operation.mimetype = contentType; |
233 | @@ -384,8 +386,8 @@ | |||
234 | 384 | dispatch_async(dispatch_get_main_queue(), ^{ | 386 | dispatch_async(dispatch_get_main_queue(), ^{ |
235 | 385 | 387 | ||
236 | 386 | NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys: | 388 | NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys: |
239 | 387 | operation.fileNode, @"node", | 389 | operationRef.fileNode, @"node", |
240 | 388 | operation.fileInfo, @"fileInfo", | 390 | operationRef.fileInfo, @"fileInfo", |
241 | 389 | nil]; | 391 | nil]; |
242 | 390 | [[NSNotificationCenter defaultCenter] postNotificationName:U1FilesClientNodeStatusChangedNotification object:self userInfo:userInfo]; | 392 | [[NSNotificationCenter defaultCenter] postNotificationName:U1FilesClientNodeStatusChangedNotification object:self userInfo:userInfo]; |
243 | 391 | 393 | ||
244 | @@ -396,18 +398,17 @@ | |||
245 | 396 | progressBlock(sent, total); | 398 | progressBlock(sent, total); |
246 | 397 | } | 399 | } |
247 | 398 | }; | 400 | }; |
248 | 399 | |||
249 | 400 | [operation setQueuePriority:priority]; | 401 | [operation setQueuePriority:priority]; |
250 | 401 | [operation setCompletionBlock:^{ | 402 | [operation setCompletionBlock:^{ |
251 | 402 | dispatch_async(dispatch_get_main_queue(), ^(void) { | 403 | dispatch_async(dispatch_get_main_queue(), ^(void) { |
253 | 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) |
254 | 404 | { | 405 | { |
255 | 405 | [[NSNotificationCenter defaultCenter] postNotificationName:@"imageUploaded" object:nil]; | 406 | [[NSNotificationCenter defaultCenter] postNotificationName:@"imageUploaded" object:nil]; |
257 | 406 | completionBlock(operation.fileNode, nil); | 407 | completionBlock(operationRef.fileNode, nil); |
258 | 407 | } | 408 | } |
259 | 408 | else | 409 | else |
260 | 409 | { | 410 | { |
262 | 410 | NSLog(@"Error trying to upload %@: %@", resourceName, operation.error); | 411 | NSLog(@"Error trying to upload %@: %@", resourceName, operationRef.error); |
263 | 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) |
264 | 412 | [self uploadContentDataProvider:dataProvider | 413 | [self uploadContentDataProvider:dataProvider |
265 | 413 | toFolder:folderNode | 414 | toFolder:folderNode |
266 | 414 | 415 | ||
267 | === modified file 'Files/U1FilesService.m' | |||
268 | --- Files/U1FilesService.m 2011-12-09 19:56:28 +0000 | |||
269 | +++ Files/U1FilesService.m 2011-12-13 16:37:23 +0000 | |||
270 | @@ -357,11 +357,12 @@ | |||
271 | 357 | U1HTTPRequestOperation *httpOperation = [[U1HTTPRequestOperation alloc] initWithRequest:request dataCollector:collector]; | 357 | U1HTTPRequestOperation *httpOperation = [[U1HTTPRequestOperation alloc] initWithRequest:request dataCollector:collector]; |
272 | 358 | [request release]; | 358 | [request release]; |
273 | 359 | 359 | ||
274 | 360 | __block typeof(httpOperation) operationRef = httpOperation; | ||
275 | 360 | [httpOperation setCompletionBlock:^(void) { | 361 | [httpOperation setCompletionBlock:^(void) { |
276 | 361 | 362 | ||
277 | 362 | id result = nil; | 363 | id result = nil; |
280 | 363 | NSHTTPURLResponse *response = httpOperation.response; | 364 | NSHTTPURLResponse *response = operationRef.response; |
281 | 364 | NSError *error = httpOperation.error; | 365 | NSError *error = operationRef.error; |
282 | 365 | 366 | ||
283 | 366 | if ([response statusCode] == 401) | 367 | if ([response statusCode] == 401) |
284 | 367 | { | 368 | { |
285 | 368 | 369 | ||
286 | === modified file 'Files/U1FolderViewController.m' | |||
287 | --- Files/U1FolderViewController.m 2011-12-09 20:31:25 +0000 | |||
288 | +++ Files/U1FolderViewController.m 2011-12-13 16:37:23 +0000 | |||
289 | @@ -217,7 +217,7 @@ | |||
290 | 217 | resultBlock:^(ALAsset *asset) { | 217 | resultBlock:^(ALAsset *asset) { |
291 | 218 | ALAssetRepresentation *representation = [asset defaultRepresentation]; | 218 | ALAssetRepresentation *representation = [asset defaultRepresentation]; |
292 | 219 | CFStringRef uti = (CFStringRef)[representation UTI]; | 219 | CFStringRef uti = (CFStringRef)[representation UTI]; |
294 | 220 | NSString *mimetype = (id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType); | 220 | NSString *mimetype = [(id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType) autorelease]; |
295 | 221 | NSString *assetType = nil; | 221 | NSString *assetType = nil; |
296 | 222 | if (UTTypeConformsTo(uti, kUTTypeImage)) | 222 | if (UTTypeConformsTo(uti, kUTTypeImage)) |
297 | 223 | { | 223 | { |
298 | @@ -237,7 +237,7 @@ | |||
299 | 237 | [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; | 237 | [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; |
300 | 238 | [dateFormatter setTimeStyle:NSDateFormatterMediumStyle]; | 238 | [dateFormatter setTimeStyle:NSDateFormatterMediumStyle]; |
301 | 239 | 239 | ||
303 | 240 | NSString *ext = (id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension); | 240 | NSString *ext = [(id)UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension) autorelease]; |
304 | 241 | NSString *filename = [NSString stringWithFormat:@"%@ %@.%@", assetType, [dateFormatter stringFromDate:assetDate], ext]; | 241 | NSString *filename = [NSString stringWithFormat:@"%@ %@.%@", assetType, [dateFormatter stringFromDate:assetDate], ext]; |
305 | 242 | [dateFormatter release]; | 242 | [dateFormatter release]; |
306 | 243 | 243 | ||
307 | 244 | 244 | ||
308 | === modified file 'Files/U1LoginController.m' | |||
309 | --- Files/U1LoginController.m 2011-12-06 18:38:47 +0000 | |||
310 | +++ Files/U1LoginController.m 2011-12-13 16:37:23 +0000 | |||
311 | @@ -31,7 +31,8 @@ | |||
312 | 31 | 31 | ||
313 | 32 | 32 | ||
314 | 33 | @interface U1LoginController () | 33 | @interface U1LoginController () |
316 | 34 | @property (retain) UIViewController *loginViewController; | 34 | @property (retain) IBOutlet UIViewController *loginViewController; |
317 | 35 | @property (retain) IBOutlet UOSSOCredentialsViewController *rootController; | ||
318 | 35 | @property (retain) NSOperationQueue *operationQueue; | 36 | @property (retain) NSOperationQueue *operationQueue; |
319 | 36 | - (void)loginWithUsername:(NSString*)username password:(NSString*)password; | 37 | - (void)loginWithUsername:(NSString*)username password:(NSString*)password; |
320 | 37 | - (void)handleError:(NSError*)error; | 38 | - (void)handleError:(NSError*)error; |
321 | @@ -40,14 +41,15 @@ | |||
322 | 40 | 41 | ||
323 | 41 | @implementation U1LoginController | 42 | @implementation U1LoginController |
324 | 42 | 43 | ||
326 | 43 | @synthesize delegate, loginViewController, operationQueue; | 44 | @synthesize delegate, loginViewController, rootController, operationQueue; |
327 | 44 | 45 | ||
328 | 45 | - (id)init; | 46 | - (id)init; |
329 | 46 | { | 47 | { |
330 | 47 | if (!(self = [super init])) | 48 | if (!(self = [super init])) |
331 | 48 | return nil; | 49 | return nil; |
332 | 49 | 50 | ||
334 | 50 | UOSSOCredentialsViewController *rootController = [[[UOSSOCredentialsViewController alloc] initWithNibName:@"UOSSOCredentialsViewController" bundle:nil] autorelease]; | 51 | // UOSSOCredentialsViewController *rootController = [[[UOSSOCredentialsViewController alloc] initWithNibName:@"UOSSOCredentialsViewController" bundle:nil] autorelease]; |
335 | 52 | [[UINib nibWithNibName:@"U1LoginController" bundle:nil] instantiateWithOwner:self options:nil]; | ||
336 | 51 | rootController.title = NSLocalizedString(@"Log In to Ubuntu One", @""); | 53 | rootController.title = NSLocalizedString(@"Log In to Ubuntu One", @""); |
337 | 52 | 54 | ||
338 | 53 | __block id this = self; | 55 | __block id this = self; |
339 | @@ -56,10 +58,10 @@ | |||
340 | 56 | [this loginWithUsername:username password:password]; | 58 | [this loginWithUsername:username password:password]; |
341 | 57 | }; | 59 | }; |
342 | 58 | 60 | ||
344 | 59 | UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootController]; | 61 | // UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootController]; |
345 | 60 | // navController.navigationBar.barStyle = UIBarStyleBlack; | 62 | // navController.navigationBar.barStyle = UIBarStyleBlack; |
346 | 61 | // navController.navigationBarHidden = YES; | 63 | // navController.navigationBarHidden = YES; |
348 | 62 | loginViewController = navController; | 64 | // loginViewController = navController; |
349 | 63 | 65 | ||
350 | 64 | operationQueue = [[NSOperationQueue alloc] init]; | 66 | operationQueue = [[NSOperationQueue alloc] init]; |
351 | 65 | 67 | ||
352 | @@ -70,6 +72,7 @@ | |||
353 | 70 | { | 72 | { |
354 | 71 | delegate = nil; | 73 | delegate = nil; |
355 | 72 | [loginViewController release]; | 74 | [loginViewController release]; |
356 | 75 | [rootController release]; | ||
357 | 73 | [operationQueue release]; | 76 | [operationQueue release]; |
358 | 74 | [super dealloc]; | 77 | [super dealloc]; |
359 | 75 | } | 78 | } |
360 | 76 | 79 | ||
361 | === added file 'Files/U1LoginController.xib' | |||
362 | --- Files/U1LoginController.xib 1970-01-01 00:00:00 +0000 | |||
363 | +++ Files/U1LoginController.xib 2011-12-13 16:37:23 +0000 | |||
364 | @@ -0,0 +1,245 @@ | |||
365 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
366 | 2 | <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> | ||
367 | 3 | <data> | ||
368 | 4 | <int key="IBDocument.SystemTarget">1280</int> | ||
369 | 5 | <string key="IBDocument.SystemVersion">10K549</string> | ||
370 | 6 | <string key="IBDocument.InterfaceBuilderVersion">1938</string> | ||
371 | 7 | <string key="IBDocument.AppKitVersion">1038.36</string> | ||
372 | 8 | <string key="IBDocument.HIToolboxVersion">461.00</string> | ||
373 | 9 | <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> | ||
374 | 10 | <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
375 | 11 | <string key="NS.object.0">933</string> | ||
376 | 12 | </object> | ||
377 | 13 | <array key="IBDocument.IntegratedClassDependencies"> | ||
378 | 14 | <string>IBUINavigationItem</string> | ||
379 | 15 | <string>IBUIViewController</string> | ||
380 | 16 | <string>IBUINavigationBar</string> | ||
381 | 17 | <string>IBUINavigationController</string> | ||
382 | 18 | <string>IBProxyObject</string> | ||
383 | 19 | </array> | ||
384 | 20 | <array key="IBDocument.PluginDependencies"> | ||
385 | 21 | <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
386 | 22 | </array> | ||
387 | 23 | <object class="NSMutableDictionary" key="IBDocument.Metadata"> | ||
388 | 24 | <string key="NS.key.0">PluginDependencyRecalculationVersion</string> | ||
389 | 25 | <integer value="1" key="NS.object.0"/> | ||
390 | 26 | </object> | ||
391 | 27 | <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> | ||
392 | 28 | <object class="IBProxyObject" id="841351856"> | ||
393 | 29 | <string key="IBProxiedObjectIdentifier">IBFilesOwner</string> | ||
394 | 30 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
395 | 31 | </object> | ||
396 | 32 | <object class="IBProxyObject" id="371349661"> | ||
397 | 33 | <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> | ||
398 | 34 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
399 | 35 | </object> | ||
400 | 36 | <object class="IBUINavigationController" id="497033572"> | ||
401 | 37 | <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> | ||
402 | 38 | <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics"> | ||
403 | 39 | <int key="IBUIInterfaceOrientation">1</int> | ||
404 | 40 | <int key="interfaceOrientation">1</int> | ||
405 | 41 | </object> | ||
406 | 42 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
407 | 43 | <bool key="IBUIHorizontal">NO</bool> | ||
408 | 44 | <object class="IBUINavigationBar" key="IBUINavigationBar" id="18568225"> | ||
409 | 45 | <nil key="NSNextResponder"/> | ||
410 | 46 | <int key="NSvFlags">256</int> | ||
411 | 47 | <string key="NSFrameSize">{0, 0}</string> | ||
412 | 48 | <bool key="IBUIOpaque">NO</bool> | ||
413 | 49 | <bool key="IBUIClipsSubviews">YES</bool> | ||
414 | 50 | <bool key="IBUIMultipleTouchEnabled">YES</bool> | ||
415 | 51 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
416 | 52 | </object> | ||
417 | 53 | <array class="NSMutableArray" key="IBUIViewControllers"> | ||
418 | 54 | <object class="IBUIViewController" id="357211705"> | ||
419 | 55 | <object class="IBUINavigationItem" key="IBUINavigationItem" id="866999870"> | ||
420 | 56 | <reference key="IBUINavigationBar"/> | ||
421 | 57 | <string key="IBUITitle"/> | ||
422 | 58 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
423 | 59 | </object> | ||
424 | 60 | <reference key="IBUIParentViewController" ref="497033572"/> | ||
425 | 61 | <string key="IBUINibName">UOSSOCredentialsViewController</string> | ||
426 | 62 | <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics"> | ||
427 | 63 | <int key="IBUIInterfaceOrientation">1</int> | ||
428 | 64 | <int key="interfaceOrientation">1</int> | ||
429 | 65 | </object> | ||
430 | 66 | <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
431 | 67 | <bool key="IBUIHorizontal">NO</bool> | ||
432 | 68 | </object> | ||
433 | 69 | </array> | ||
434 | 70 | </object> | ||
435 | 71 | </array> | ||
436 | 72 | <object class="IBObjectContainer" key="IBDocument.Objects"> | ||
437 | 73 | <array class="NSMutableArray" key="connectionRecords"> | ||
438 | 74 | <object class="IBConnectionRecord"> | ||
439 | 75 | <object class="IBCocoaTouchOutletConnection" key="connection"> | ||
440 | 76 | <string key="label">loginViewController</string> | ||
441 | 77 | <reference key="source" ref="841351856"/> | ||
442 | 78 | <reference key="destination" ref="497033572"/> | ||
443 | 79 | </object> | ||
444 | 80 | <int key="connectionID">6</int> | ||
445 | 81 | </object> | ||
446 | 82 | <object class="IBConnectionRecord"> | ||
447 | 83 | <object class="IBCocoaTouchOutletConnection" key="connection"> | ||
448 | 84 | <string key="label">rootController</string> | ||
449 | 85 | <reference key="source" ref="841351856"/> | ||
450 | 86 | <reference key="destination" ref="357211705"/> | ||
451 | 87 | </object> | ||
452 | 88 | <int key="connectionID">7</int> | ||
453 | 89 | </object> | ||
454 | 90 | </array> | ||
455 | 91 | <object class="IBMutableOrderedSet" key="objectRecords"> | ||
456 | 92 | <array key="orderedObjects"> | ||
457 | 93 | <object class="IBObjectRecord"> | ||
458 | 94 | <int key="objectID">0</int> | ||
459 | 95 | <array key="object" id="0"/> | ||
460 | 96 | <reference key="children" ref="1000"/> | ||
461 | 97 | <nil key="parent"/> | ||
462 | 98 | </object> | ||
463 | 99 | <object class="IBObjectRecord"> | ||
464 | 100 | <int key="objectID">-1</int> | ||
465 | 101 | <reference key="object" ref="841351856"/> | ||
466 | 102 | <reference key="parent" ref="0"/> | ||
467 | 103 | <string key="objectName">File's Owner</string> | ||
468 | 104 | </object> | ||
469 | 105 | <object class="IBObjectRecord"> | ||
470 | 106 | <int key="objectID">-2</int> | ||
471 | 107 | <reference key="object" ref="371349661"/> | ||
472 | 108 | <reference key="parent" ref="0"/> | ||
473 | 109 | </object> | ||
474 | 110 | <object class="IBObjectRecord"> | ||
475 | 111 | <int key="objectID">2</int> | ||
476 | 112 | <reference key="object" ref="497033572"/> | ||
477 | 113 | <array class="NSMutableArray" key="children"> | ||
478 | 114 | <reference ref="18568225"/> | ||
479 | 115 | <reference ref="357211705"/> | ||
480 | 116 | </array> | ||
481 | 117 | <reference key="parent" ref="0"/> | ||
482 | 118 | </object> | ||
483 | 119 | <object class="IBObjectRecord"> | ||
484 | 120 | <int key="objectID">3</int> | ||
485 | 121 | <reference key="object" ref="18568225"/> | ||
486 | 122 | <reference key="parent" ref="497033572"/> | ||
487 | 123 | </object> | ||
488 | 124 | <object class="IBObjectRecord"> | ||
489 | 125 | <int key="objectID">4</int> | ||
490 | 126 | <reference key="object" ref="357211705"/> | ||
491 | 127 | <array class="NSMutableArray" key="children"> | ||
492 | 128 | <reference ref="866999870"/> | ||
493 | 129 | </array> | ||
494 | 130 | <reference key="parent" ref="497033572"/> | ||
495 | 131 | </object> | ||
496 | 132 | <object class="IBObjectRecord"> | ||
497 | 133 | <int key="objectID">5</int> | ||
498 | 134 | <reference key="object" ref="866999870"/> | ||
499 | 135 | <reference key="parent" ref="357211705"/> | ||
500 | 136 | </object> | ||
501 | 137 | </array> | ||
502 | 138 | </object> | ||
503 | 139 | <dictionary class="NSMutableDictionary" key="flattenedProperties"> | ||
504 | 140 | <string key="-1.CustomClassName">U1LoginController</string> | ||
505 | 141 | <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
506 | 142 | <string key="-2.CustomClassName">UIResponder</string> | ||
507 | 143 | <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
508 | 144 | <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
509 | 145 | <string key="3.CustomClassName">U1NavigationBar</string> | ||
510 | 146 | <string key="3.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
511 | 147 | <string key="4.CustomClassName">UOSSOCredentialsViewController</string> | ||
512 | 148 | <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
513 | 149 | <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
514 | 150 | </dictionary> | ||
515 | 151 | <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> | ||
516 | 152 | <nil key="activeLocalization"/> | ||
517 | 153 | <dictionary class="NSMutableDictionary" key="localizations"/> | ||
518 | 154 | <nil key="sourceID"/> | ||
519 | 155 | <int key="maxID">7</int> | ||
520 | 156 | </object> | ||
521 | 157 | <object class="IBClassDescriber" key="IBDocument.Classes"> | ||
522 | 158 | <array class="NSMutableArray" key="referencedPartialClassDescriptions"> | ||
523 | 159 | <object class="IBPartialClassDescription"> | ||
524 | 160 | <string key="className">U1LoginController</string> | ||
525 | 161 | <string key="superclassName">NSObject</string> | ||
526 | 162 | <dictionary class="NSMutableDictionary" key="outlets"> | ||
527 | 163 | <string key="loginViewController">UIViewController</string> | ||
528 | 164 | <string key="rootController">UOSSOCredentialsViewController</string> | ||
529 | 165 | </dictionary> | ||
530 | 166 | <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName"> | ||
531 | 167 | <object class="IBToOneOutletInfo" key="loginViewController"> | ||
532 | 168 | <string key="name">loginViewController</string> | ||
533 | 169 | <string key="candidateClassName">UIViewController</string> | ||
534 | 170 | </object> | ||
535 | 171 | <object class="IBToOneOutletInfo" key="rootController"> | ||
536 | 172 | <string key="name">rootController</string> | ||
537 | 173 | <string key="candidateClassName">UOSSOCredentialsViewController</string> | ||
538 | 174 | </object> | ||
539 | 175 | </dictionary> | ||
540 | 176 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
541 | 177 | <string key="majorKey">IBProjectSource</string> | ||
542 | 178 | <string key="minorKey">./Classes/U1LoginController.h</string> | ||
543 | 179 | </object> | ||
544 | 180 | </object> | ||
545 | 181 | <object class="IBPartialClassDescription"> | ||
546 | 182 | <string key="className">U1NavigationBar</string> | ||
547 | 183 | <string key="superclassName">UINavigationBar</string> | ||
548 | 184 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
549 | 185 | <string key="majorKey">IBProjectSource</string> | ||
550 | 186 | <string key="minorKey">./Classes/U1NavigationBar.h</string> | ||
551 | 187 | </object> | ||
552 | 188 | </object> | ||
553 | 189 | <object class="IBPartialClassDescription"> | ||
554 | 190 | <string key="className">UOSSOCredentialsViewController</string> | ||
555 | 191 | <string key="superclassName">UIViewController</string> | ||
556 | 192 | <object class="NSMutableDictionary" key="actions"> | ||
557 | 193 | <string key="NS.key.0">logIn:</string> | ||
558 | 194 | <string key="NS.object.0">id</string> | ||
559 | 195 | </object> | ||
560 | 196 | <object class="NSMutableDictionary" key="actionInfosByName"> | ||
561 | 197 | <string key="NS.key.0">logIn:</string> | ||
562 | 198 | <object class="IBActionInfo" key="NS.object.0"> | ||
563 | 199 | <string key="name">logIn:</string> | ||
564 | 200 | <string key="candidateClassName">id</string> | ||
565 | 201 | </object> | ||
566 | 202 | </object> | ||
567 | 203 | <dictionary class="NSMutableDictionary" key="outlets"> | ||
568 | 204 | <string key="emailField">UITextField</string> | ||
569 | 205 | <string key="loginButton">UIButton</string> | ||
570 | 206 | <string key="passwordField">UITextField</string> | ||
571 | 207 | <string key="patternView">UIView</string> | ||
572 | 208 | <string key="spinner">UIActivityIndicatorView</string> | ||
573 | 209 | </dictionary> | ||
574 | 210 | <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName"> | ||
575 | 211 | <object class="IBToOneOutletInfo" key="emailField"> | ||
576 | 212 | <string key="name">emailField</string> | ||
577 | 213 | <string key="candidateClassName">UITextField</string> | ||
578 | 214 | </object> | ||
579 | 215 | <object class="IBToOneOutletInfo" key="loginButton"> | ||
580 | 216 | <string key="name">loginButton</string> | ||
581 | 217 | <string key="candidateClassName">UIButton</string> | ||
582 | 218 | </object> | ||
583 | 219 | <object class="IBToOneOutletInfo" key="passwordField"> | ||
584 | 220 | <string key="name">passwordField</string> | ||
585 | 221 | <string key="candidateClassName">UITextField</string> | ||
586 | 222 | </object> | ||
587 | 223 | <object class="IBToOneOutletInfo" key="patternView"> | ||
588 | 224 | <string key="name">patternView</string> | ||
589 | 225 | <string key="candidateClassName">UIView</string> | ||
590 | 226 | </object> | ||
591 | 227 | <object class="IBToOneOutletInfo" key="spinner"> | ||
592 | 228 | <string key="name">spinner</string> | ||
593 | 229 | <string key="candidateClassName">UIActivityIndicatorView</string> | ||
594 | 230 | </object> | ||
595 | 231 | </dictionary> | ||
596 | 232 | <object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
597 | 233 | <string key="majorKey">IBProjectSource</string> | ||
598 | 234 | <string key="minorKey">./Classes/UOSSOCredentialsViewController.h</string> | ||
599 | 235 | </object> | ||
600 | 236 | </object> | ||
601 | 237 | </array> | ||
602 | 238 | </object> | ||
603 | 239 | <int key="IBDocument.localizationMode">0</int> | ||
604 | 240 | <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string> | ||
605 | 241 | <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> | ||
606 | 242 | <int key="IBDocument.defaultPropertyAccessControl">3</int> | ||
607 | 243 | <string key="IBCocoaTouchPluginVersion">933</string> | ||
608 | 244 | </data> | ||
609 | 245 | </archive> | ||
610 | 0 | 246 | ||
611 | === modified file 'Files/U1SettingsViewController.m' | |||
612 | --- Files/U1SettingsViewController.m 2011-12-09 20:31:25 +0000 | |||
613 | +++ Files/U1SettingsViewController.m 2011-12-13 16:37:23 +0000 | |||
614 | @@ -219,6 +219,7 @@ | |||
615 | 219 | NSString *usedString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"used_bytes"]]; | 219 | NSString *usedString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"used_bytes"]]; |
616 | 220 | NSString *totalString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"max_bytes"]]; | 220 | NSString *totalString = [byteSizeTransformer transformedValue:[self.accountInfo objectForKey:@"max_bytes"]]; |
617 | 221 | [cell.detailTextLabel setText:[NSString stringWithFormat:storageFormat, usedString, totalString]]; | 221 | [cell.detailTextLabel setText:[NSString stringWithFormat:storageFormat, usedString, totalString]]; |
618 | 222 | [byteSizeTransformer release]; | ||
619 | 222 | break; | 223 | break; |
620 | 223 | } | 224 | } |
621 | 224 | } | 225 | } |
622 | 225 | 226 | ||
623 | === modified file 'Files/U1VolumesViewController.m' | |||
624 | --- Files/U1VolumesViewController.m 2011-12-09 20:31:25 +0000 | |||
625 | +++ Files/U1VolumesViewController.m 2011-12-13 16:37:23 +0000 | |||
626 | @@ -106,9 +106,13 @@ | |||
627 | 106 | cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"U1FolderCell"] autorelease]; | 106 | cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"U1FolderCell"] autorelease]; |
628 | 107 | [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; | 107 | [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; |
629 | 108 | [cell setSelectionStyle:UITableViewCellSelectionStyleGray]; | 108 | [cell setSelectionStyle:UITableViewCellSelectionStyleGray]; |
630 | 109 | [cell.imageView setImage:[UIImage imageNamed:@"ic_folder"]]; | ||
631 | 110 | } | 109 | } |
632 | 111 | U1Volume *volume = [self.cloudFoldersFetchController objectAtIndexPath:indexPath]; | 110 | U1Volume *volume = [self.cloudFoldersFetchController objectAtIndexPath:indexPath]; |
633 | 111 | [cell.imageView setImage:[UIImage imageNamed:@"ic_folder"]]; | ||
634 | 112 | if ([volume.kind isEqualToString:@"root"]) | ||
635 | 113 | { | ||
636 | 114 | [cell.imageView setImage:[UIImage imageNamed:@"u1_folder"]]; | ||
637 | 115 | } | ||
638 | 112 | NSString *volumePath = volume.path; | 116 | NSString *volumePath = volume.path; |
639 | 113 | if ([@"~/.ubuntuone/Purchased from Ubuntu One" isEqualToString:volumePath]) | 117 | if ([@"~/.ubuntuone/Purchased from Ubuntu One" isEqualToString:volumePath]) |
640 | 114 | volumePath = @"Purchased Music"; | 118 | volumePath = @"Purchased Music"; |
I like it, once the conflict gets resolved. Replace 206-215 with:
NSString *ext = [(id)UTTypeCopy PreferredTagWit hClass( (CFStringRef) [representation UTI], kUTTagClassFile nameExtension) autorelease]; t:@"IMG_ %d.%@", [self nextPictureNumber], ext];
filename = [NSString stringWithForma