Skip to content
Browse files

AWS SDK for iOS 0.2.0 (Beta)

  • Loading branch information...
1 parent f5b9ca3 commit f471ee4c7faf74d88d894aafd9fc93da88fa4889 amazonwebservices committed Apr 14, 2011
Showing with 8,073 additions and 1,054 deletions.
  1. +1 −19 README.html
  2. BIN samples/.DS_Store
  3. BIN samples/awsBrowser/.DS_Store
  4. +86 −0 samples/awsBrowser/AWSiosDEMO.xcodeproj/project.pbxproj
  5. +118 −201 samples/awsBrowser/AWSiosDEMOViewController.xib
  6. +17 −3 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.h
  7. +23 −2 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.m
  8. +19 −4 samples/awsBrowser/Classes/AWSiosDEMOViewController.h
  9. +66 −46 samples/awsBrowser/Classes/AWSiosDEMOViewController.m
  10. +26 −0 samples/awsBrowser/Classes/AddQueue.h
  11. +39 −0 samples/awsBrowser/Classes/AddQueue.m
  12. +384 −0 samples/awsBrowser/Classes/AddQueue.xib
  13. +17 −8 samples/awsBrowser/Classes/DomainList.h
  14. +62 −72 samples/awsBrowser/Classes/DomainList.m
  15. +1 −2 samples/awsBrowser/Classes/DomainViewController.h
  16. +27 −24 samples/awsBrowser/Classes/DomainViewController.m
  17. +21 −11 samples/awsBrowser/Classes/ItemListing.h
  18. +70 −59 samples/awsBrowser/Classes/ItemListing.m
  19. +22 −8 samples/awsBrowser/Classes/ItemViewController.h
  20. +58 −33 samples/awsBrowser/Classes/ItemViewController.m
  21. +30 −0 samples/awsBrowser/Classes/Message.h
  22. +44 −0 samples/awsBrowser/Classes/Message.m
  23. +407 −0 samples/awsBrowser/Classes/Message.xib
  24. +31 −0 samples/awsBrowser/Classes/MessageList.h
  25. +132 −0 samples/awsBrowser/Classes/MessageList.m
  26. +336 −0 samples/awsBrowser/Classes/MessageList.xib
  27. +17 −3 samples/awsBrowser/Classes/S3/AddBucketViewController.h
  28. +33 −26 samples/awsBrowser/Classes/S3/AddBucketViewController.m
  29. +20 −7 samples/awsBrowser/Classes/S3/AddObjectViewController.h
  30. +40 −40 samples/awsBrowser/Classes/S3/AddObjectViewController.m
  31. +17 −9 samples/awsBrowser/Classes/S3/BucketList.h
  32. +88 −93 samples/awsBrowser/Classes/S3/BucketList.m
  33. +34 −7 samples/awsBrowser/Classes/S3/Constants.h
  34. +49 −14 samples/awsBrowser/Classes/S3/Constants.m
  35. +22 −11 samples/awsBrowser/Classes/S3/ObjectListing.h
  36. +107 −77 samples/awsBrowser/Classes/S3/ObjectListing.m
  37. +24 −10 samples/awsBrowser/Classes/S3/ObjectViewController.h
  38. +36 −26 samples/awsBrowser/Classes/S3/ObjectViewController.m
  39. +54 −228 samples/awsBrowser/Classes/S3/ObjectViewController.xib
  40. +26 −0 samples/awsBrowser/Classes/SNS/TopicList.h
  41. +94 −0 samples/awsBrowser/Classes/SNS/TopicList.m
  42. +321 −0 samples/awsBrowser/Classes/SNS/TopicList.xib
  43. +28 −0 samples/awsBrowser/Classes/SQS/QueueList.h
  44. +140 −0 samples/awsBrowser/Classes/SQS/QueueList.m
  45. +368 −0 samples/awsBrowser/Classes/SQS/QueueList.xib
  46. +32 −0 samples/awsBrowser/Classes/SendMessage.h
  47. +54 −0 samples/awsBrowser/Classes/SendMessage.m
  48. +478 −0 samples/awsBrowser/Classes/SendMessage.xib
  49. +19 −11 samples/awsBrowser/main.m
  50. BIN src/Amazon.CloudWatch/.DS_Store
  51. +103 −0 src/Amazon.CloudWatch/AmazonCloudWatchClient.m
  52. +20 −0 src/Amazon.CloudWatch/CloudWatchRequest.m
  53. +20 −0 src/Amazon.CloudWatch/CloudWatchResponse.m
  54. +73 −0 src/Amazon.CloudWatch/Model/CloudWatchAlarmHistoryItem.m
  55. +91 −0 src/Amazon.CloudWatch/Model/CloudWatchAlarmHistoryItemUnmarshaller.m
  56. +81 −0 src/Amazon.CloudWatch/Model/CloudWatchDatapoint.m
  57. +101 −0 src/Amazon.CloudWatch/Model/CloudWatchDatapointUnmarshaller.m
  58. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchDeleteAlarmsRequest.m
  59. +46 −0 src/Amazon.CloudWatch/Model/CloudWatchDeleteAlarmsRequestMarshaller.m
  60. +61 −0 src/Amazon.CloudWatch/Model/CloudWatchDeleteAlarmsResponse.m
  61. +50 −0 src/Amazon.CloudWatch/Model/CloudWatchDeleteAlarmsResponseUnmarshaller.m
  62. +77 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmHistoryRequest.m
  63. +67 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmHistoryRequestMarshaller.m
  64. +81 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmHistoryResponse.m
  65. +80 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmHistoryResponseUnmarshaller.m
  66. +86 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsForMetricRequest.m
  67. +80 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsForMetricRequestMarshaller.m
  68. +73 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsForMetricResponse.m
  69. +75 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsForMetricResponseUnmarshaller.m
  70. +77 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsRequest.m
  71. +71 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsRequestMarshaller.m
  72. +81 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsResponse.m
  73. +80 −0 src/Amazon.CloudWatch/Model/CloudWatchDescribeAlarmsResponseUnmarshaller.m
  74. +61 −0 src/Amazon.CloudWatch/Model/CloudWatchDimension.m
  75. +61 −0 src/Amazon.CloudWatch/Model/CloudWatchDimensionFilter.m
  76. +76 −0 src/Amazon.CloudWatch/Model/CloudWatchDimensionUnmarshaller.m
  77. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchDisableAlarmActionsRequest.m
  78. +46 −0 src/Amazon.CloudWatch/Model/CloudWatchDisableAlarmActionsRequestMarshaller.m
  79. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchDisableAlarmActionsResponse.m
  80. +50 −0 src/Amazon.CloudWatch/Model/CloudWatchDisableAlarmActionsResponseUnmarshaller.m
  81. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchEnableAlarmActionsRequest.m
  82. +46 −0 src/Amazon.CloudWatch/Model/CloudWatchEnableAlarmActionsRequestMarshaller.m
  83. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchEnableAlarmActionsResponse.m
  84. +50 −0 src/Amazon.CloudWatch/Model/CloudWatchEnableAlarmActionsResponseUnmarshaller.m
  85. +94 −0 src/Amazon.CloudWatch/Model/CloudWatchGetMetricStatisticsRequest.m
  86. +94 −0 src/Amazon.CloudWatch/Model/CloudWatchGetMetricStatisticsRequestMarshaller.m
  87. +93 −0 src/Amazon.CloudWatch/Model/CloudWatchGetMetricStatisticsResponse.m
  88. +80 −0 src/Amazon.CloudWatch/Model/CloudWatchGetMetricStatisticsResponseUnmarshaller.m
  89. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchInternalServiceException.m
  90. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchInvalidFormatException.m
  91. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchInvalidNextTokenException.m
  92. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchInvalidParameterCombinationException.m
  93. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchInvalidParameterValueException.m
  94. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchLimitExceededException.m
  95. +78 −0 src/Amazon.CloudWatch/Model/CloudWatchListMetricsRequest.m
  96. +70 −0 src/Amazon.CloudWatch/Model/CloudWatchListMetricsRequestMarshaller.m
  97. +85 −0 src/Amazon.CloudWatch/Model/CloudWatchListMetricsResponse.m
  98. +80 −0 src/Amazon.CloudWatch/Model/CloudWatchListMetricsResponseUnmarshaller.m
  99. +74 −0 src/Amazon.CloudWatch/Model/CloudWatchMetric.m
  100. +153 −0 src/Amazon.CloudWatch/Model/CloudWatchMetricAlarm.m
  101. +172 −0 src/Amazon.CloudWatch/Model/CloudWatchMetricAlarmUnmarshaller.m
  102. +85 −0 src/Amazon.CloudWatch/Model/CloudWatchMetricUnmarshaller.m
  103. +57 −0 src/Amazon.CloudWatch/Model/CloudWatchMissingRequiredParameterException.m
  104. +129 −0 src/Amazon.CloudWatch/Model/CloudWatchPutMetricAlarmRequest.m
Sorry, we could not display the entire diff because too many files (1,638) changed.
View
20 README.html
@@ -57,32 +57,14 @@
<ul>
<li> <strong>Documentation:</strong> Contains the DocSet for the AWS iOS SDK framework. </li>
<li> <strong>AWSiOSSDK.framework:</strong> A framework to include in an iOS application to access AWS APIs. </li>
- <li> <strong>samples:</strong> Contains code built using the AWSiOSSDK.framework to create a simple browser for Amazon S3 and SimpleDB. </li>
+ <li> <strong>samples:</strong> Contains code built using the AWSiOSSDK.framework to create a simple browser for Amazon S3, SimpleDB, SQS and SNS. </li>
<li> <strong>src:</strong> Contains the original implementation and header files for the SDK, including third-party code. </li>
</ul>
<h2>Run the Sample</h2>
<p>The <code>/samples</code> directory in the SDK contains a browser application that demonstrates how to make requests to AWS using the SDK.</p>
<h3>To run the browser sample</h3>
<ol>
<li>Open the <code>AWSiOSSDK/samples/awsBrowser/AWSiosDEMO.xcodeproj</code> project file in Xcode. </li>
- <li>If you're using iOS 4.2, update the project build target as follows.</p>
- <ol>
- <li>Control-click <strong>AWSiosDEMO</strong> in the project tree, then select <strong>Get Info</strong>.</li>
- <li>On the <strong>Build</strong> tab of the info dialog, change <strong>Architectures/Base SDK</strong> from <strong>iOS 4.1</strong> to <strong>Latest iOS</strong>.</li>
- <li>In the <strong>Frameworks</strong> group, remove <code>UIKit.framework</code>, <code>Foundation.framework</code>, and <code>CoreGraphics.framework</code>. </li>
- <li>Re-add each framework back to the project by right-clicking on the Frameworks tab, selecting <strong>Add</strong>-&gt;<strong>Existing Frameworks…</strong>, selecting each framework by name, then clicking the <strong>Add</strong> button.</li>
- </ol>
- </li>
- <li>Add the AWSiOSSDK Framework.
- <ol>
- <li>Expand the project.</li>
- <li>Control-click the <strong>Framework Group</strong> in the <strong>Group &amp; Files</strong> section.</li>
- <li>Select <strong>Add -&gt; Existing Frameworks...</strong>.</li>
- <li>Click the <strong>Add Other...</strong> button.</li>
- <li>Navigate to the folder <code>AWSiOSSDK.Framework</code> which was unpacked as part of the AWS SDK for iOS .zip file.</li>
- <li>Select the <strong>AWSiOSSDK.Framework</strong> folder and press the <strong>Add</strong> button.</li>
- </ol>
- </li>
<li>Configure the sample with your AWS security credentials:
<ol>
<li>Open the <code>Constants.h</code> file. </li>
View
BIN samples/.DS_Store
Binary file not shown.
View
BIN samples/awsBrowser/.DS_Store
Binary file not shown.
View
86 samples/awsBrowser/AWSiosDEMO.xcodeproj/project.pbxproj
@@ -15,6 +15,19 @@
2899E5220DE3E06400AC0155 /* AWSiosDEMOViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* AWSiosDEMOViewController.xib */; };
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
28D7ACF80DDB3853001CB0EB /* AWSiosDEMOViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* AWSiosDEMOViewController.m */; };
+ D00E162812CD3BDC00FA8ED7 /* SendMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = D00E162612CD3BDC00FA8ED7 /* SendMessage.m */; };
+ D00E162912CD3BDC00FA8ED7 /* SendMessage.xib in Resources */ = {isa = PBXBuildFile; fileRef = D00E162712CD3BDC00FA8ED7 /* SendMessage.xib */; };
+ D00E17DF12CD58ED00FA8ED7 /* Message.m in Sources */ = {isa = PBXBuildFile; fileRef = D00E17DD12CD58ED00FA8ED7 /* Message.m */; };
+ D00E17E012CD58ED00FA8ED7 /* Message.xib in Resources */ = {isa = PBXBuildFile; fileRef = D00E17DE12CD58ED00FA8ED7 /* Message.xib */; };
+ D00E181512CD5C8F00FA8ED7 /* AddQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = D00E181312CD5C8F00FA8ED7 /* AddQueue.m */; };
+ D00E181612CD5C8F00FA8ED7 /* AddQueue.xib in Resources */ = {isa = PBXBuildFile; fileRef = D00E181412CD5C8F00FA8ED7 /* AddQueue.xib */; };
+ D0103DB31340F3FF00D4D4DF /* AWSiOSSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0103DB21340F3FF00D4D4DF /* AWSiOSSDK.framework */; };
+ D020A4A812CC086200332CDD /* QueueList.m in Sources */ = {isa = PBXBuildFile; fileRef = D020A4A612CC086200332CDD /* QueueList.m */; };
+ D020A4A912CC086200332CDD /* QueueList.xib in Resources */ = {isa = PBXBuildFile; fileRef = D020A4A712CC086200332CDD /* QueueList.xib */; };
+ D020A4B012CC096E00332CDD /* TopicList.m in Sources */ = {isa = PBXBuildFile; fileRef = D020A4AE12CC096E00332CDD /* TopicList.m */; };
+ D020A4B112CC096E00332CDD /* TopicList.xib in Resources */ = {isa = PBXBuildFile; fileRef = D020A4AF12CC096E00332CDD /* TopicList.xib */; };
+ D020A4EC12CC0D6F00332CDD /* MessageList.m in Sources */ = {isa = PBXBuildFile; fileRef = D020A4EA12CC0D6F00332CDD /* MessageList.m */; };
+ D020A4ED12CC0D6F00332CDD /* MessageList.xib in Resources */ = {isa = PBXBuildFile; fileRef = D020A4EB12CC0D6F00332CDD /* MessageList.xib */; };
D099929D128CA0E100CF9F64 /* AddBucketViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D099928D128CA0E100CF9F64 /* AddBucketViewController.m */; };
D099929E128CA0E100CF9F64 /* AddBucketViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D099928E128CA0E100CF9F64 /* AddBucketViewController.xib */; };
D099929F128CA0E100CF9F64 /* AddObjectViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D0999290128CA0E100CF9F64 /* AddObjectViewController.m */; };
@@ -48,6 +61,25 @@
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* AWSiosDEMO_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AWSiosDEMO_Prefix.pch; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* AWSiosDEMO-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "AWSiosDEMO-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
+ D00E162512CD3BDC00FA8ED7 /* SendMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SendMessage.h; sourceTree = "<group>"; };
+ D00E162612CD3BDC00FA8ED7 /* SendMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SendMessage.m; sourceTree = "<group>"; };
+ D00E162712CD3BDC00FA8ED7 /* SendMessage.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SendMessage.xib; sourceTree = "<group>"; };
+ D00E17DC12CD58ED00FA8ED7 /* Message.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Message.h; sourceTree = "<group>"; };
+ D00E17DD12CD58ED00FA8ED7 /* Message.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Message.m; sourceTree = "<group>"; };
+ D00E17DE12CD58ED00FA8ED7 /* Message.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Message.xib; sourceTree = "<group>"; };
+ D00E181212CD5C8F00FA8ED7 /* AddQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AddQueue.h; sourceTree = "<group>"; };
+ D00E181312CD5C8F00FA8ED7 /* AddQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AddQueue.m; sourceTree = "<group>"; };
+ D00E181412CD5C8F00FA8ED7 /* AddQueue.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AddQueue.xib; sourceTree = "<group>"; };
+ D0103DB21340F3FF00D4D4DF /* AWSiOSSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AWSiOSSDK.framework; path = /Volumes/Data/gdierkes/Desktop/mainline/AWSiOSSDK.framework; sourceTree = "<absolute>"; };
+ D020A4A512CC086200332CDD /* QueueList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = QueueList.h; path = SQS/QueueList.h; sourceTree = "<group>"; };
+ D020A4A612CC086200332CDD /* QueueList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = QueueList.m; path = SQS/QueueList.m; sourceTree = "<group>"; };
+ D020A4A712CC086200332CDD /* QueueList.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = QueueList.xib; path = SQS/QueueList.xib; sourceTree = "<group>"; };
+ D020A4AD12CC096E00332CDD /* TopicList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicList.h; sourceTree = "<group>"; };
+ D020A4AE12CC096E00332CDD /* TopicList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicList.m; sourceTree = "<group>"; };
+ D020A4AF12CC096E00332CDD /* TopicList.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TopicList.xib; sourceTree = "<group>"; };
+ D020A4E912CC0D6F00332CDD /* MessageList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageList.h; sourceTree = "<group>"; };
+ D020A4EA12CC0D6F00332CDD /* MessageList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MessageList.m; sourceTree = "<group>"; };
+ D020A4EB12CC0D6F00332CDD /* MessageList.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MessageList.xib; sourceTree = "<group>"; };
D099928C128CA0E100CF9F64 /* AddBucketViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AddBucketViewController.h; sourceTree = "<group>"; };
D099928D128CA0E100CF9F64 /* AddBucketViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AddBucketViewController.m; sourceTree = "<group>"; };
D099928E128CA0E100CF9F64 /* AddBucketViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AddBucketViewController.xib; sourceTree = "<group>"; };
@@ -84,6 +116,7 @@
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
+ D0103DB31340F3FF00D4D4DF /* AWSiOSSDK.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -93,6 +126,8 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
+ D020A4AC12CC096E00332CDD /* SNS */,
+ D020A4A412CC085300332CDD /* SQS */,
D099945A128CAA4B00CF9F64 /* SimpleDB */,
D099928B128CA0E100CF9F64 /* S3 */,
D0999295128CA0E100CF9F64 /* Constants.h */,
@@ -150,10 +185,43 @@
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
1D30AB110D05D00D00671497 /* Foundation.framework */,
288765A40DF7441C002DB57D /* CoreGraphics.framework */,
+ D0103DB21340F3FF00D4D4DF /* AWSiOSSDK.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
+ D020A4A412CC085300332CDD /* SQS */ = {
+ isa = PBXGroup;
+ children = (
+ D020A4A512CC086200332CDD /* QueueList.h */,
+ D020A4A612CC086200332CDD /* QueueList.m */,
+ D020A4A712CC086200332CDD /* QueueList.xib */,
+ D020A4E912CC0D6F00332CDD /* MessageList.h */,
+ D020A4EA12CC0D6F00332CDD /* MessageList.m */,
+ D020A4EB12CC0D6F00332CDD /* MessageList.xib */,
+ D00E162512CD3BDC00FA8ED7 /* SendMessage.h */,
+ D00E162612CD3BDC00FA8ED7 /* SendMessage.m */,
+ D00E162712CD3BDC00FA8ED7 /* SendMessage.xib */,
+ D00E17DC12CD58ED00FA8ED7 /* Message.h */,
+ D00E17DD12CD58ED00FA8ED7 /* Message.m */,
+ D00E17DE12CD58ED00FA8ED7 /* Message.xib */,
+ D00E181212CD5C8F00FA8ED7 /* AddQueue.h */,
+ D00E181312CD5C8F00FA8ED7 /* AddQueue.m */,
+ D00E181412CD5C8F00FA8ED7 /* AddQueue.xib */,
+ );
+ name = SQS;
+ sourceTree = "<group>";
+ };
+ D020A4AC12CC096E00332CDD /* SNS */ = {
+ isa = PBXGroup;
+ children = (
+ D020A4AD12CC096E00332CDD /* TopicList.h */,
+ D020A4AE12CC096E00332CDD /* TopicList.m */,
+ D020A4AF12CC096E00332CDD /* TopicList.xib */,
+ );
+ path = SNS;
+ sourceTree = "<group>";
+ };
D099928B128CA0E100CF9F64 /* S3 */ = {
isa = PBXGroup;
children = (
@@ -251,6 +319,12 @@
D099945F128CAAE000CF9F64 /* DomainList.xib in Resources */,
D09994AE128CACC300CF9F64 /* ItemListing.xib in Resources */,
D0999520128CB32100CF9F64 /* ItemViewController.xib in Resources */,
+ D020A4A912CC086200332CDD /* QueueList.xib in Resources */,
+ D020A4B112CC096E00332CDD /* TopicList.xib in Resources */,
+ D020A4ED12CC0D6F00332CDD /* MessageList.xib in Resources */,
+ D00E162912CD3BDC00FA8ED7 /* SendMessage.xib in Resources */,
+ D00E17E012CD58ED00FA8ED7 /* Message.xib in Resources */,
+ D00E181612CD5C8F00FA8ED7 /* AddQueue.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -273,6 +347,12 @@
D099945E128CAAE000CF9F64 /* DomainList.m in Sources */,
D09994AD128CACC300CF9F64 /* ItemListing.m in Sources */,
D099951F128CB32100CF9F64 /* ItemViewController.m in Sources */,
+ D020A4A812CC086200332CDD /* QueueList.m in Sources */,
+ D020A4B012CC096E00332CDD /* TopicList.m in Sources */,
+ D020A4EC12CC0D6F00332CDD /* MessageList.m in Sources */,
+ D00E162812CD3BDC00FA8ED7 /* SendMessage.m in Sources */,
+ D00E17DF12CD58ED00FA8ED7 /* Message.m in Sources */,
+ D00E181512CD5C8F00FA8ED7 /* AddQueue.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -287,14 +367,17 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
+ "\"$(SRCROOT)/../..\"",
"\"$(SRCROOT)/../../src/build/Framework\"",
+ "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.0\"",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = AWSiosDEMO_Prefix.pch;
INFOPLIST_FILE = "AWSiosDEMO-Info.plist";
PRODUCT_NAME = AWSiosDEMO;
+ SDKROOT = iphoneos;
};
name = Debug;
};
@@ -306,12 +389,15 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
+ "\"$(SRCROOT)/../..\"",
"\"$(SRCROOT)/../../src/build/Framework\"",
+ "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.0\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = AWSiosDEMO_Prefix.pch;
INFOPLIST_FILE = "AWSiosDEMO-Info.plist";
PRODUCT_NAME = AWSiosDEMO;
+ SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
View
319 samples/awsBrowser/AWSiosDEMOViewController.xib
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data>
- <int key="IBDocument.SystemTarget">1024</int>
- <string key="IBDocument.SystemVersion">10F569</string>
- <string key="IBDocument.InterfaceBuilderVersion">804</string>
- <string key="IBDocument.AppKitVersion">1038.29</string>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10H574</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
<string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">123</string>
+ <string key="NS.object.0">132</string>
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -45,14 +45,19 @@
<object class="IBUILabel" id="439595866">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 20}, {280, 21}}</string>
+ <string key="NSFrame">{{20, 20}, {280, 29}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">AWS iOS Browser</string>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">24</double>
+ <int key="NSfFlags">16</int>
+ </object>
<object class="NSColor" key="IBUITextColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
@@ -68,7 +73,7 @@
<object class="IBUIButton" id="896138778">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 49}, {280, 37}}</string>
+ <string key="NSFrame">{{20, 57}, {280, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -94,7 +99,7 @@
<object class="IBUIButton" id="565879777">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 94}, {280, 37}}</string>
+ <string key="NSFrame">{{20, 102}, {280, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -110,6 +115,44 @@
</object>
<reference key="IBUINormalTitleShadowColor" ref="1053992636"/>
</object>
+ <object class="IBUIButton" id="606509084">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 147}, {280, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <reference key="IBUIFont" ref="17827683"/>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">SQS - List Queues</string>
+ <reference key="IBUIHighlightedTitleColor" ref="70998297"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="1053992636"/>
+ </object>
+ <object class="IBUIButton" id="590818917">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 192}, {280, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <reference key="IBUIFont" ref="17827683"/>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">SNS - List Topics</string>
+ <reference key="IBUIHighlightedTitleColor" ref="70998297"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="1053992636"/>
+ </object>
</object>
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview"/>
@@ -154,6 +197,24 @@
</object>
<int key="connectionID">13</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">listQueues:</string>
+ <reference key="source" ref="606509084"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">16</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">listTopics:</string>
+ <reference key="source" ref="590818917"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -183,6 +244,8 @@
<reference ref="439595866"/>
<reference ref="896138778"/>
<reference ref="565879777"/>
+ <reference ref="606509084"/>
+ <reference ref="590818917"/>
</object>
<reference key="parent" ref="0"/>
</object>
@@ -201,6 +264,16 @@
<reference key="object" ref="565879777"/>
<reference key="parent" ref="774585933"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="606509084"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="590818917"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -210,20 +283,40 @@
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>12.IBPluginDependency</string>
+ <string>12.IBViewBoundsToFrameTransform</string>
+ <string>14.IBPluginDependency</string>
+ <string>14.IBViewBoundsToFrameTransform</string>
+ <string>17.IBPluginDependency</string>
+ <string>17.IBViewBoundsToFrameTransform</string>
<string>6.IBEditorWindowLastContentRect</string>
<string>6.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
<string>9.IBPluginDependency</string>
+ <string>9.IBViewBoundsToFrameTransform</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>AWSiosDEMOViewController</string>
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwzcAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw4OAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw5oAAA</bytes>
+ </object>
<string>{{518, 615}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwvoAAA</bytes>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -242,7 +335,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">13</int>
+ <int key="maxID">21</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -256,11 +349,15 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>listBuckets:</string>
<string>listDomains:</string>
+ <string>listQueues:</string>
+ <string>listTopics:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
+ <string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
@@ -269,6 +366,8 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>listBuckets:</string>
<string>listDomains:</string>
+ <string>listQueues:</string>
+ <string>listTopics:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -280,6 +379,14 @@
<string key="name">listDomains:</string>
<string key="candidateClassName">id</string>
</object>
+ <object class="IBActionInfo">
+ <string key="name">listQueues:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">listTopics:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
@@ -288,202 +395,12 @@
</object>
</object>
</object>
- <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier" id="96616695">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIButton</string>
- <string key="superclassName">UIControl</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIButton.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIControl</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIControl.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UILabel</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIResponder</string>
- <string key="superclassName">NSObject</string>
- <reference key="sourceIdentifier" ref="96616695"/>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchBar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchDisplayController</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
- </object>
- </object>
- </object>
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="1024" key="NS.object.0"/>
+ <integer value="1056" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
@@ -492,6 +409,6 @@
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<string key="IBDocument.LastKnownRelativeProjectPath">AWSiosDEMO.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">123</string>
+ <string key="IBCocoaTouchPluginVersion">132</string>
</data>
</archive>
View
20 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.h
@@ -1,14 +1,28 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import <UIKit/UIKit.h>
@class AWSiosDEMOViewController;
-@interface AWSiosDEMOAppDelegate : NSObject <UIApplicationDelegate> {
- UIWindow *window;
+@interface AWSiosDEMOAppDelegate:NSObject<UIApplicationDelegate> {
+ UIWindow *window;
AWSiosDEMOViewController *viewController;
}
-@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet AWSiosDEMOViewController *viewController;
@end
View
25 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.m
@@ -1,20 +1,41 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import "AWSiosDEMOAppDelegate.h"
#import "AWSiosDEMOViewController.h"
+//#import "AmazonLogger.h"
+
@implementation AWSiosDEMOAppDelegate
@synthesize window;
@synthesize viewController;
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
[window addSubview:viewController.view];
[window makeKeyAndVisible];
+ char *envValue = "GTMVerboseLogging=1\0";
+ putenv(envValue);
+
return YES;
}
-- (void)dealloc {
+-(void)dealloc
+{
[viewController release];
[window release];
[super dealloc];
View
23 samples/awsBrowser/Classes/AWSiosDEMOViewController.h
@@ -1,12 +1,27 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import <UIKit/UIKit.h>
-@interface AWSiosDEMOViewController : UIViewController {
-
+@interface AWSiosDEMOViewController:UIViewController {
}
-- (IBAction)listBuckets:(id)sender;
-- (IBAction)listDomains:(id)sender;
+-(IBAction)listBuckets:(id)sender;
+-(IBAction)listDomains:(id)sender;
+-(IBAction)listQueues:(id)sender;
+-(IBAction)listTopics:(id)sender;
@end
View
112 samples/awsBrowser/Classes/AWSiosDEMOViewController.m
@@ -1,66 +1,86 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import "AWSiosDEMOViewController.h"
#import "Constants.h"
#import "BucketList.h"
#import "DomainList.h"
+#import "QueueList.h"
+#import "TopicList.h"
@implementation AWSiosDEMOViewController
-- (IBAction)listBuckets:(id)sender {
- if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"] ) {
- [[Constants credentialsAlert] show];
- }
- else {
- NSArray* buckets = [[Constants s3] listBuckets];
- NSMutableArray* bucketNames = [[NSMutableArray alloc] initWithCapacity:1];
- for ( S3Bucket* bucket in buckets ) {
- [bucketNames addObject:[bucket name]];
- }
-
- [UIView beginAnimations:@"load" context:nil];
- [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.view cache:YES];
-
- BucketList* bucketList = [BucketList instance];
- bucketList.buckets = bucketNames;
-
- [self.view addSubview:bucketList.view];
- [UIView commitAnimations];
- }
+-(IBAction)listBuckets:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ BucketList *bucketList = [[BucketList alloc] init];
+ bucketList.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:bucketList animated:YES];
+ [bucketList release];
+ }
}
-- (IBAction)listDomains:(id)sender {
- if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"] ) {
- [[Constants credentialsAlert] show];
- }
- else {
- SimpleDBListDomainsRequest* listDomainsRequest = [[[SimpleDBListDomainsRequest alloc] init] autorelease];
- SimpleDBListDomainsResponse* listDomainsResponse = [[Constants sdb] listDomains:listDomainsRequest];
-
- NSMutableArray* domainNames = [[NSMutableArray alloc] initWithCapacity:[listDomainsResponse.domainNames count]];
- for ( NSString* name in listDomainsResponse.domainNames ) {
- [domainNames addObject:name];
- }
-
- [UIView beginAnimations:@"load" context:nil];
- [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.view cache:YES];
-
- DomainList* domainList = [DomainList instance];
- domainList.domains = domainNames;
-
- [self.view addSubview:domainList.view];
- [UIView commitAnimations];
- }
+-(IBAction)listDomains:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ DomainList *domainList = [[DomainList alloc] init];
+ domainList.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:domainList animated:YES];
+ [domainList release];
+ }
}
-- (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
+-(IBAction)listQueues:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ QueueList *queueList = [[QueueList alloc] init];
+ queueList.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:queueList animated:YES];
+ [queueList release];
+ }
}
-- (void)viewDidUnload {
+-(IBAction)listTopics:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ TopicList *topicList = [[TopicList alloc] init];
+ topicList.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:topicList animated:YES];
+ [topicList release];
+ }
}
-- (void)dealloc {
+-(void)dealloc
+{
[super dealloc];
}
View
26 samples/awsBrowser/Classes/AddQueue.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+#import <UIKit/UIKit.h>
+
+
+@interface AddQueue:UIViewController {
+ IBOutlet UITextField *queueName;
+}
+
+-(IBAction)create:(id)sender;
+-(IBAction)cancel:(id)sender;
+
+@end
View
39 samples/awsBrowser/Classes/AddQueue.m
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+#import "AddQueue.h"
+#import "Constants.h"
+
+@implementation AddQueue
+
+-(IBAction)create:(id)sender
+{
+ @try {
+ SQSCreateQueueRequest *createQueueRequest = [[[SQSCreateQueueRequest alloc] initWithQueueName:queueName.text] autorelease];
+ [[Constants sqs] createQueue:createQueueRequest];
+
+ [self dismissModalViewControllerAnimated:YES];
+ }
+ @catch (AmazonServiceException *exception) {
+ NSLog(@"Exception = %@", exception);
+ }
+}
+
+-(IBAction)cancel:(id)sender
+{
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+@end
View
384 samples/awsBrowser/Classes/AddQueue.xib
@@ -0,0 +1,384 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10H574</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">132</string>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="1"/>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUILabel" id="771584544">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 20}, {280, 29}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Create New Queue</string>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">24</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <object class="NSColor" key="IBUITextColor" id="820534420">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <object class="NSColor" key="IBUIHighlightedColor" id="896184086">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">1</int>
+ </object>
+ <object class="IBUILabel" id="1053948745">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 57}, {51, 21}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Name:</string>
+ <reference key="IBUITextColor" ref="820534420"/>
+ <reference key="IBUIHighlightedColor" ref="896184086"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUITextField" id="21514742">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{79, 52}, {221, 31}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <string key="IBUIText"/>
+ <int key="IBUIBorderStyle">3</int>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace" id="97624608">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <bool key="IBUIAdjustsFontSizeToFit">YES</bool>
+ <float key="IBUIMinimumFontSize">17</float>
+ <object class="IBUITextInputTraits" key="IBUITextInputTraits">
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </object>
+ <object class="IBUIButton" id="281630776">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{79, 91}, {72, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <object class="NSFont" key="IBUIFont" id="828255425">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Create</string>
+ <reference key="IBUIHighlightedTitleColor" ref="896184086"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="410716225">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ </object>
+ <object class="IBUIButton" id="408499321">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{158, 91}, {74, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <reference key="IBUIFont" ref="828255425"/>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Cancel</string>
+ <reference key="IBUIHighlightedTitleColor" ref="896184086"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="410716225"/>
+ </object>
+ </object>
+ <string key="NSFrameSize">{320, 460}</string>
+ <reference key="NSSuperview"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <reference key="NSCustomColorSpace" ref="97624608"/>
+ </object>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">queueName</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="21514742"/>
+ </object>
+ <int key="connectionID">9</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">cancel:</string>
+ <reference key="source" ref="408499321"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">10</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">create:</string>
+ <reference key="source" ref="281630776"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">11</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <reference key="object" ref="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="771584544"/>
+ <reference ref="1053948745"/>
+ <reference ref="21514742"/>
+ <reference ref="281630776"/>
+ <reference ref="408499321"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="771584544"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="1053948745"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="21514742"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="281630776"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="408499321"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.CustomClassName</string>
+ <string>-2.CustomClassName</string>
+ <string>1.IBEditorWindowLastContentRect</string>
+ <string>1.IBPluginDependency</string>
+ <string>4.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ <string>6.IBPluginDependency</string>
+ <string>7.IBPluginDependency</string>
+ <string>8.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>AddQueue</string>
+ <string>UIResponder</string>
+ <string>{{484, 403}, {320, 480}}</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">11</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">AddQueue</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>cancel:</string>
+ <string>create:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>cancel:</string>
+ <string>create:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">cancel:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">create:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">queueName</string>
+ <string key="NS.object.0">UITextField</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">queueName</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">queueName</string>
+ <string key="candidateClassName">UITextField</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Classes/AddQueue.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <integer value="1056" key="NS.object.0"/>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <integer value="3000" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <string key="IBDocument.LastKnownRelativeProjectPath">../AWSiosDEMO.xcodeproj</string>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">132</string>
+ </data>
+</archive>
View
25 samples/awsBrowser/Classes/DomainList.h
@@ -1,17 +1,26 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import <UIKit/UIKit.h>
-@interface DomainList : UIViewController {
- NSMutableArray* domains;
- IBOutlet UITableView* domainTableView;
+@interface DomainList:UIViewController {
+ NSMutableArray *domains;
+ IBOutlet UITableView *domainTableView;
}
-@property (nonatomic, retain) NSMutableArray *domains;
-
-+(DomainList*)instance;
-
-(id)init;
-
-(IBAction)done:(id)sender;
@end
View
134 samples/awsBrowser/Classes/DomainList.m
@@ -1,109 +1,99 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import "DomainList.h"
#import "Constants.h"
#import "ItemListing.h"
@implementation DomainList
-static DomainList* _instance = nil;
-
-@synthesize domains;
-
-+(DomainList*)instance
+-(id)init
{
- @synchronized([DomainList class]) {
- if (!_instance) {
- [[self alloc] init];
- }
-
- return _instance;
- }
-
- return nil;
+ return [super initWithNibName:@"DomainList" bundle:nil];
}
-+(id)alloc
+-(void)viewWillAppear:(BOOL)animated
{
- @synchronized([DomainList class]) {
- NSAssert(_instance == nil, @"Attempted to allocate a second instance of a singleton.");
- _instance = [super alloc];
- return _instance;
- }
-
- return nil;
-}
-
--(id)init {
- return [super initWithNibName:@"DomainList" bundle:nil];
-}
-
--(void)addDomain:(NSString*)domainName {
- NSArray *insertPaths = [NSArray arrayWithObjects:[NSIndexPath indexPathForRow:0 inSection:0], nil];
-
- [domains insertObject:domainName atIndex:0];
-
- [domainTableView beginUpdates];
- [domainTableView insertRowsAtIndexPaths:insertPaths withRowAnimation:UITableViewRowAnimationFade];
- [domainTableView endUpdates];
-}
+ @try {
+ SimpleDBListDomainsRequest *listDomainsRequest = [[[SimpleDBListDomainsRequest alloc] init] autorelease];
+ SimpleDBListDomainsResponse *listDomainsResponse = [[Constants sdb] listDomains:listDomainsRequest];
+
+ if (domains == nil) {
+ domains = [[NSMutableArray alloc] initWithCapacity:[listDomainsResponse.domainNames count]];
+ }
+ else {
+ [domains removeAllObjects];
+ }
+ for (NSString *name in listDomainsResponse.domainNames) {
+ [domains addObject:name];
+ }
+
+ [domains sortUsingSelector:@selector(compare:)];
+ }
+ @catch (AmazonServiceException *exception) {
+ NSLog(@"Exception = %@", exception);
+ }
-- (IBAction)done:(id)sender {
- [self.view removeFromSuperview];
+ [domainTableView reloadData];
}
-- (void)viewDidLoad {
- [super viewDidLoad];
+-(IBAction)done:(id)sender
+{
+ [self dismissModalViewControllerAnimated:YES];
}
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
return 1;
}
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
return [domains count];
}
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
static NSString *CellIdentifier = @"Cell";
-
+
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
-
+
// Configure the cell...
- cell.textLabel.text = [domains objectAtIndex:indexPath.row];
-
+ cell.textLabel.text = [domains objectAtIndex:indexPath.row];
+ cell.textLabel.adjustsFontSizeToFitWidth = YES;
+
return cell;
}
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- NSString *selectExpression = [NSString stringWithFormat:@"select itemName() from `%@`", [domains objectAtIndex:indexPath.row]];
- SimpleDBSelectRequest* selectRequest = [[SimpleDBSelectRequest alloc] initWithSelectExpression:selectExpression];
- SimpleDBSelectResponse* selectResponse = [[Constants sdb] select:selectRequest];
-
- NSMutableArray* itemNames = [[NSMutableArray alloc] initWithCapacity:1];
- for ( SimpleDBItem* item in selectResponse.items ) {
- [itemNames addObject:item.name];
- }
-
- [UIView beginAnimations:@"load" context:nil];
- [UIView setAnimationDuration:1];
- [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.view cache:YES];
-
- ItemListing* itemList = [[ItemListing alloc] init];
- itemList.domain = [domains objectAtIndex:indexPath.row];
- itemList.items = itemNames;
-
- [self.view addSubview:itemList.view];
- [UIView commitAnimations];
-}
+-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ ItemListing *itemList = [[ItemListing alloc] init];
-- (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
+ itemList.domain = [domains objectAtIndex:indexPath.row];
+ itemList.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+ [self presentModalViewController:itemList animated:YES];
+ [itemList release];
}
-- (void)dealloc {
+-(void)dealloc
+{
+ [domains release];
[super dealloc];
}
View
3 samples/awsBrowser/Classes/DomainViewController.h
@@ -9,8 +9,7 @@
#import <UIKit/UIKit.h>
-@interface DomainViewController : UIViewController {
-
+@interface DomainViewController:UIViewController {
}
@end
View
51 samples/awsBrowser/Classes/DomainViewController.m
@@ -12,45 +12,48 @@
@implementation DomainViewController
/*
- // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
- // Custom initialization
- }
- return self;
-}
-*/
+ * // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
+ * - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+ * if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
+ * // Custom initialization
+ * }
+ * return self;
+ * }
+ */
/*
-// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-- (void)viewDidLoad {
- [super viewDidLoad];
-}
-*/
+ * // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
+ * - (void)viewDidLoad {
+ * [super viewDidLoad];
+ * }
+ */
/*
-// Override to allow orientations other than the default portrait orientation.
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
-}
-*/
-
-- (void)didReceiveMemoryWarning {
+ * // Override to allow orientations other than the default portrait orientation.
+ * - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ * // Return YES for supported orientations
+ * return (interfaceOrientation == UIInterfaceOrientationPortrait);
+ * }
+ */
+
+-(void)didReceiveMemoryWarning
+{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
-
+
// Release any cached data, images, etc that aren't in use.
}
-- (void)viewDidUnload {
+-(void)viewDidUnload
+{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
-- (void)dealloc {
+-(void)dealloc
+{
[super dealloc];
}
View
32 samples/awsBrowser/Classes/ItemListing.h
@@ -1,20 +1,30 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import <UIKit/UIKit.h>
-@interface ItemListing : UIViewController {
- NSMutableArray *items;
- NSString *domain;
-
- IBOutlet UITableView *itemsTableView;
+@interface ItemListing:UIViewController {
+ NSMutableArray *items;
+ NSString *domain;
+
+ IBOutlet UITableView *itemsTableView;
}
-@property (nonatomic, retain) NSMutableArray* items;
-@property (nonatomic, retain) NSString* domain;
+@property (nonatomic, retain) NSString *domain;
-(id)init;
-
-- (IBAction)done:(id)sender;
-
--(void)addItem:(NSString*)itemName;
+-(IBAction)done:(id)sender;
@end
View
129 samples/awsBrowser/Classes/ItemListing.m
@@ -1,3 +1,17 @@
+/*
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
#import <AWSiOSSDK/SimpleDB/AmazonSimpleDBClient.h>
#import "ItemListing.h"
@@ -6,93 +20,90 @@
@implementation ItemListing
-@synthesize domain, items;
+@synthesize domain;
--(id)init {
- return [super initWithNibName:@"ItemListing" bundle:nil];
+-(id)init
+{
+ return [super initWithNibName:@"ItemListing" bundle:nil];
}
--(void)addItem:(NSString*)itemName {
- NSArray *insertPaths = [NSArray arrayWithObjects:[NSIndexPath indexPathForRow:[items count] inSection:0], nil];
-
- [items addObject:itemName];
-
- [itemsTableView beginUpdates];
- [itemsTableView insertRowsAtIndexPaths:insertPaths withRowAnimation:UITableViewRowAnimationFade];
- [itemsTableView endUpdates];
-}
-
-- (IBAction)done:(id)sender {
- [self.view removeFromSuperview];
-}
+-(void)viewWillAppear:(BOOL)animated
+{
+ NSString *selectExpression = [NSString stringWithFormat:@"select itemName() from `%@`", self.domain];
+
+ @try {
+ SimpleDBSelectRequest *selectRequest = [[[SimpleDBSelectRequest alloc] initWithSelectExpression:selectExpression] autorelease];
+ SimpleDBSelectResponse *selectResponse = [[Constants sdb] select:selectRequest];
+
+ if (items == nil) {
+ items = [[NSMutableArray alloc] initWithCapacity:[selectResponse.items count]];
+ }
+ else {
+ [items removeAllObjects];
+ }
+ for (SimpleDBItem *item in selectResponse.items) {
+ [items addObject:item.name];
+ }
+ [items sortUsingSelector:@selector(compare:)];
+ }
+ @catch (AmazonServiceException *exception) {
+ NSLog(@"Exception = %@", exception);
+ }
-- (id)initWithNibName:(NSString *)nibNameOrNil andObjects:(NSMutableArray*)theItems domain:(NSString*)domainName {
- if ((self = [super initWithNibName:nibNameOrNil bundle:nil])) {
- items = theItems;
- domain = domainName;
- }
-
- return self;
+ [itemsTableView reloadData];
}
-- (void)viewDidLoad {
- [super viewDidLoad];
+-(IBAction)done:(id)sender
+{
+ [self dismissModalViewControllerAnimated:YES];
}
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
return 1;
}
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
return [items count];
}
-// Customize the appearance of table view cells.
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
static NSString *CellIdentifier = @"Cell";
-
+
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
-
- // Configure the cell...
- cell.textLabel.text = [items objectAtIndex:indexPath.row];
-
+
<