Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AWS SDK for iOS (Beta) 0.2.2

  • Loading branch information...
commit fd08d941f33fc383dc20f0e2e888f9f6d508ee77 1 parent 80a9e4f
amazonwebservices authored
Showing with 216,466 additions and 248 deletions.
  1. BIN  samples/.DS_Store
  2. BIN  samples/awsBrowser/.DS_Store
  3. +38 −2 samples/awsBrowser/AWSiosDEMO.xcodeproj/project.pbxproj
  4. +99 −5 samples/awsBrowser/AWSiosDEMOViewController.xib
  5. BIN  samples/awsBrowser/Classes/.DS_Store
  6. +3 −4 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.m
  7. +2 −0  samples/awsBrowser/Classes/AWSiosDEMOViewController.h
  8. +30 −0 samples/awsBrowser/Classes/AWSiosDEMOViewController.m
  9. +35 −0 samples/awsBrowser/Classes/S3/S3AsyncViewController.h
  10. +97 −0 samples/awsBrowser/Classes/S3/S3AsyncViewController.m
  11. +487 −0 samples/awsBrowser/Classes/S3/S3AsyncViewController.xib
  12. +45 −0 samples/awsBrowser/Classes/S3RequestDelegate.h
  13. +101 −0 samples/awsBrowser/Classes/S3RequestDelegate.m
  14. +42 −0 samples/awsBrowser/Classes/SdbAsyncViewController.h
  15. +149 −0 samples/awsBrowser/Classes/SdbAsyncViewController.m
  16. +487 −0 samples/awsBrowser/Classes/SdbAsyncViewController.xib
  17. +46 −0 samples/awsBrowser/Classes/SdbRequestDelegate.h
  18. +100 −0 samples/awsBrowser/Classes/SdbRequestDelegate.m
  19. +214,201 −0 samples/awsBrowser/Classes/temp.txt
  20. +26 −26 src/Amazon.AutoScaling/AmazonAutoScalingClient.m
  21. +10 −10 src/Amazon.CloudWatch/AmazonCloudWatchClient.m
  22. +70 −70 src/Amazon.EC2/AmazonEC2Client.m
  23. +16 −16 src/Amazon.ElasticLoadBalancing/AmazonElasticLoadBalancingClient.m
  24. +1 −1  src/Amazon.Runtime/AmazonAuthUtils.m
  25. +64 −0 src/Amazon.Runtime/AmazonEndpoints.m
  26. +91 −0 src/Amazon.Runtime/AmazonRequestDelegate.m
  27. +43 −2 src/Amazon.Runtime/AmazonServiceResponse.m
  28. +36 −59 src/Amazon.Runtime/AmazonWebServiceClient.m
  29. +1 −1  src/Amazon.S3/AmazonS3Client.m
  30. +14 −3 src/Amazon.S3/Model/S3Region.m
  31. +7 −7 src/Amazon.SES/AmazonSESClient.m
  32. +13 −13 src/Amazon.SNS/AmazonSNSClient.m
  33. +11 −11 src/Amazon.SQS/AmazonSQSClient.m
  34. +10 −10 src/Amazon.SimpleDB/AmazonSimpleDBClient.m
  35. +1 −1  src/ThirdParty/GTMLogger.m
  36. +28 −0 src/include/AmazonEndpoints.h
  37. +41 −0 src/include/AmazonRequestDelegate.h
  38. +1 −1  src/include/AmazonSDKUtil.h
  39. +2 −2 src/include/AmazonServiceRequest.h
  40. +3 −0  src/include/AmazonServiceResponse.h
  41. +2 −2 src/include/AmazonWebServiceClient.h
  42. +13 −0 src/include/S3/S3Region.h
  43. +0 −2  src/include/SimpleDB/SimpleDBListDomainsResponse.h
View
BIN  samples/.DS_Store
Binary file not shown
View
BIN  samples/awsBrowser/.DS_Store
Binary file not shown
View
40 samples/awsBrowser/AWSiosDEMO.xcodeproj/project.pbxproj
@@ -22,12 +22,19 @@
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 */; };
+ D0167E8813673F0B00FA6780 /* SdbAsyncViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D0167E8413673F0B00FA6780 /* SdbAsyncViewController.m */; };
+ D0167E8913673F0B00FA6780 /* SdbAsyncViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D0167E8513673F0B00FA6780 /* SdbAsyncViewController.xib */; };
+ D0167E8A13673F0B00FA6780 /* SdbRequestDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D0167E8713673F0B00FA6780 /* SdbRequestDelegate.m */; };
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 */; };
+ D0211C1B1365D5B500CC5635 /* S3AsyncViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D0211C1A1365D5B500CC5635 /* S3AsyncViewController.xib */; };
+ D0211C1E1365D5D000CC5635 /* S3AsyncViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D0211C1D1365D5D000CC5635 /* S3AsyncViewController.m */; };
+ D0211C651365E05800CC5635 /* S3RequestDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D0211C641365E05800CC5635 /* S3RequestDelegate.m */; };
+ D0211C9C1365E5EA00CC5635 /* temp.txt in Resources */ = {isa = PBXBuildFile; fileRef = D0211C9B1365E5EA00CC5635 /* temp.txt */; };
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 */; };
@@ -71,6 +78,11 @@
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>"; };
+ D0167E8313673F0B00FA6780 /* SdbAsyncViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SdbAsyncViewController.h; sourceTree = "<group>"; };
+ D0167E8413673F0B00FA6780 /* SdbAsyncViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SdbAsyncViewController.m; sourceTree = "<group>"; };
+ D0167E8513673F0B00FA6780 /* SdbAsyncViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SdbAsyncViewController.xib; sourceTree = "<group>"; };
+ D0167E8613673F0B00FA6780 /* SdbRequestDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SdbRequestDelegate.h; sourceTree = "<group>"; };
+ D0167E8713673F0B00FA6780 /* SdbRequestDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SdbRequestDelegate.m; sourceTree = "<group>"; };
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>"; };
@@ -80,6 +92,12 @@
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>"; };
+ D0211C1A1365D5B500CC5635 /* S3AsyncViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S3AsyncViewController.xib; sourceTree = "<group>"; };
+ D0211C1C1365D5D000CC5635 /* S3AsyncViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = S3AsyncViewController.h; sourceTree = "<group>"; };
+ D0211C1D1365D5D000CC5635 /* S3AsyncViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = S3AsyncViewController.m; sourceTree = "<group>"; };
+ D0211C631365E05800CC5635 /* S3RequestDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = S3RequestDelegate.h; path = ../S3RequestDelegate.h; sourceTree = "<group>"; };
+ D0211C641365E05800CC5635 /* S3RequestDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = S3RequestDelegate.m; path = ../S3RequestDelegate.m; sourceTree = "<group>"; };
+ D0211C9B1365E5EA00CC5635 /* temp.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = temp.txt; path = Classes/temp.txt; sourceTree = SOURCE_ROOT; };
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>"; };
@@ -225,6 +243,9 @@
D099928B128CA0E100CF9F64 /* S3 */ = {
isa = PBXGroup;
children = (
+ D0211C9B1365E5EA00CC5635 /* temp.txt */,
+ D0211C631365E05800CC5635 /* S3RequestDelegate.h */,
+ D0211C641365E05800CC5635 /* S3RequestDelegate.m */,
D099928C128CA0E100CF9F64 /* AddBucketViewController.h */,
D099928D128CA0E100CF9F64 /* AddBucketViewController.m */,
D099928E128CA0E100CF9F64 /* AddBucketViewController.xib */,
@@ -240,6 +261,9 @@
D099929A128CA0E100CF9F64 /* ObjectViewController.h */,
D099929B128CA0E100CF9F64 /* ObjectViewController.m */,
D099929C128CA0E100CF9F64 /* ObjectViewController.xib */,
+ D0211C1A1365D5B500CC5635 /* S3AsyncViewController.xib */,
+ D0211C1C1365D5D000CC5635 /* S3AsyncViewController.h */,
+ D0211C1D1365D5D000CC5635 /* S3AsyncViewController.m */,
);
path = S3;
sourceTree = "<group>";
@@ -247,6 +271,11 @@
D099945A128CAA4B00CF9F64 /* SimpleDB */ = {
isa = PBXGroup;
children = (
+ D0167E8313673F0B00FA6780 /* SdbAsyncViewController.h */,
+ D0167E8413673F0B00FA6780 /* SdbAsyncViewController.m */,
+ D0167E8513673F0B00FA6780 /* SdbAsyncViewController.xib */,
+ D0167E8613673F0B00FA6780 /* SdbRequestDelegate.h */,
+ D0167E8713673F0B00FA6780 /* SdbRequestDelegate.m */,
D099945B128CAAE000CF9F64 /* DomainList.h */,
D099945C128CAAE000CF9F64 /* DomainList.m */,
D099945D128CAAE000CF9F64 /* DomainList.xib */,
@@ -325,6 +354,9 @@
D00E162912CD3BDC00FA8ED7 /* SendMessage.xib in Resources */,
D00E17E012CD58ED00FA8ED7 /* Message.xib in Resources */,
D00E181612CD5C8F00FA8ED7 /* AddQueue.xib in Resources */,
+ D0211C1B1365D5B500CC5635 /* S3AsyncViewController.xib in Resources */,
+ D0211C9C1365E5EA00CC5635 /* temp.txt in Resources */,
+ D0167E8913673F0B00FA6780 /* SdbAsyncViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -353,6 +385,10 @@
D00E162812CD3BDC00FA8ED7 /* SendMessage.m in Sources */,
D00E17DF12CD58ED00FA8ED7 /* Message.m in Sources */,
D00E181512CD5C8F00FA8ED7 /* AddQueue.m in Sources */,
+ D0211C1E1365D5D000CC5635 /* S3AsyncViewController.m in Sources */,
+ D0211C651365E05800CC5635 /* S3RequestDelegate.m in Sources */,
+ D0167E8813673F0B00FA6780 /* SdbAsyncViewController.m in Sources */,
+ D0167E8A13673F0B00FA6780 /* SdbRequestDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -369,7 +405,7 @@
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../..\"",
"\"$(SRCROOT)/../../src/build/Framework\"",
- "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.0\"",
+ "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.2\"",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
@@ -391,7 +427,7 @@
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../..\"",
"\"$(SRCROOT)/../../src/build/Framework\"",
- "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.0\"",
+ "\"$(SRCROOT)/../../../aws-ios-sdk-0.2.2\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = AWSiosDEMO_Prefix.pch;
View
104 samples/awsBrowser/AWSiosDEMOViewController.xib
@@ -2,10 +2,10 @@
<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.SystemVersion">10J567</string>
<string key="IBDocument.InterfaceBuilderVersion">823</string>
<string key="IBDocument.AppKitVersion">1038.35</string>
- <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <string key="IBDocument.HIToolboxVersion">462.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>
@@ -153,6 +153,44 @@
</object>
<reference key="IBUINormalTitleShadowColor" ref="1053992636"/>
</object>
+ <object class="IBUIButton" id="840259240">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 237}, {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">S3 - Async Demo</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="723202018">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 282}, {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">SimpleDB - Async Demo</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"/>
@@ -215,6 +253,24 @@
</object>
<int key="connectionID">21</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">s3AsyncDemo:</string>
+ <reference key="source" ref="840259240"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">24</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">sdbAsyncDemo:</string>
+ <reference key="source" ref="723202018"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">27</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -246,6 +302,8 @@
<reference ref="565879777"/>
<reference ref="606509084"/>
<reference ref="590818917"/>
+ <reference ref="840259240"/>
+ <reference ref="723202018"/>
</object>
<reference key="parent" ref="0"/>
</object>
@@ -274,6 +332,16 @@
<reference key="object" ref="590818917"/>
<reference key="parent" ref="774585933"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">22</int>
+ <reference key="object" ref="840259240"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">25</int>
+ <reference key="object" ref="723202018"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -288,6 +356,10 @@
<string>14.IBViewBoundsToFrameTransform</string>
<string>17.IBPluginDependency</string>
<string>17.IBViewBoundsToFrameTransform</string>
+ <string>22.IBPluginDependency</string>
+ <string>22.IBViewBoundsToFrameTransform</string>
+ <string>25.IBPluginDependency</string>
+ <string>25.IBViewBoundsToFrameTransform</string>
<string>6.IBEditorWindowLastContentRect</string>
<string>6.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
@@ -308,9 +380,17 @@
</object>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw5oAAA</bytes>
+ <bytes key="NSTransformStruct">AUGgAABDQAAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">AUGgAABDbQAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABByAAAw4qAAA</bytes>
</object>
- <string>{{518, 615}, {320, 480}}</string>
+ <string>{{938, 485}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -335,7 +415,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">21</int>
+ <int key="maxID">27</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -351,6 +431,8 @@
<string>listDomains:</string>
<string>listQueues:</string>
<string>listTopics:</string>
+ <string>s3AsyncDemo:</string>
+ <string>sdbAsyncDemo:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -358,6 +440,8 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
@@ -368,6 +452,8 @@
<string>listDomains:</string>
<string>listQueues:</string>
<string>listTopics:</string>
+ <string>s3AsyncDemo:</string>
+ <string>sdbAsyncDemo:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -387,6 +473,14 @@
<string key="name">listTopics:</string>
<string key="candidateClassName">id</string>
</object>
+ <object class="IBActionInfo">
+ <string key="name">s3AsyncDemo:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">sdbAsyncDemo:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
View
BIN  samples/awsBrowser/Classes/.DS_Store
Binary file not shown
View
7 samples/awsBrowser/Classes/AWSiosDEMOAppDelegate.m
@@ -15,8 +15,7 @@
#import "AWSiosDEMOAppDelegate.h"
#import "AWSiosDEMOViewController.h"
-//#import "AmazonLogger.h"
-
+#import <AWSiOSSDK/AmazonLogger.h>
@implementation AWSiosDEMOAppDelegate
@@ -28,8 +27,8 @@ -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(N
[window addSubview:viewController.view];
[window makeKeyAndVisible];
- char *envValue = "GTMVerboseLogging=1\0";
- putenv(envValue);
+// Uncomment the line below to see more logging.
+// [AmazonLogger verboseLogging];
return YES;
}
View
2  samples/awsBrowser/Classes/AWSiosDEMOViewController.h
@@ -22,6 +22,8 @@
-(IBAction)listDomains:(id)sender;
-(IBAction)listQueues:(id)sender;
-(IBAction)listTopics:(id)sender;
+-(IBAction)s3AsyncDemo:(id)sender;
+-(IBAction)sdbAsyncDemo:(id)sender;
@end
View
30 samples/awsBrowser/Classes/AWSiosDEMOViewController.m
@@ -19,6 +19,8 @@
#import "DomainList.h"
#import "QueueList.h"
#import "TopicList.h"
+#import "S3AsyncViewController.h"
+#import "SdbAsyncViewController.h"
@implementation AWSiosDEMOViewController
@@ -79,6 +81,34 @@ -(IBAction)listTopics:(id)sender
}
}
+-(IBAction)s3AsyncDemo:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ S3AsyncViewController *s3Async = [[S3AsyncViewController alloc] init];
+ s3Async.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:s3Async animated:YES];
+ [s3Async release];
+ }
+}
+
+-(IBAction)sdbAsyncDemo:(id)sender
+{
+ if ( [ACCESS_KEY isEqualToString:@"CHANGE ME"] || [SECRET_KEY isEqualToString:@"CHANGE ME"]) {
+ [[Constants credentialsAlert] show];
+ }
+ else {
+ SdbAsyncViewController *sdbAsync = [[SdbAsyncViewController alloc] init];
+ sdbAsync.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
+
+ [self presentModalViewController:sdbAsync animated:YES];
+ [sdbAsync release];
+ }
+}
+
-(void)dealloc
{
[super dealloc];
View
35 samples/awsBrowser/Classes/S3/S3AsyncViewController.h
@@ -0,0 +1,35 @@
+/*
+ * 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>
+#import "S3RequestDelegate.h"
+
+@interface S3AsyncViewController:UIViewController {
+ IBOutlet UILabel *bytesIn;
+ IBOutlet UILabel *bytesOut;
+ S3RequestDelegate *s3Delegate;
+}
+
+@property (nonatomic, retain) UILabel *bytesIn;
+@property (nonatomic, retain) UILabel *bytesOut;
+
+-(IBAction)start:(id)sender;
+-(IBAction)exit:(id)sender;
+
+-(void)putObject;
+-(void)getObject;
+
+@end
View
97 samples/awsBrowser/Classes/S3/S3AsyncViewController.m
@@ -0,0 +1,97 @@
+/*
+ * 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 "S3AsyncViewController.h"
+#import "Constants.h"
+
+
+@implementation S3AsyncViewController
+
+
+@synthesize bytesIn, bytesOut;
+
+
+-(id)init
+{
+ // Create the S3 Request Delegate
+ s3Delegate = [[S3RequestDelegate alloc] init];
+
+ return [super initWithNibName:@"S3AsyncViewController" bundle:nil];
+}
+
+-(void)viewWillAppear:(BOOL)animated
+{
+ s3Delegate.bytesIn = bytesIn;
+ s3Delegate.bytesOut = bytesOut;
+}
+
+-(IBAction)start:(id)sender
+{
+ [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(putObject) userInfo:nil repeats:NO];
+ [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(getObject) userInfo:nil repeats:NO];
+}
+
+-(IBAction)exit:(id)sender
+{
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+-(void)putObject
+{
+ NSString *bucketName = [NSString stringWithFormat:@"testing-async-with-s3-for%@", [ACCESS_KEY lowercaseString]];
+ NSString *keyName = @"asyncTestFile";
+ NSString *filename = [[NSBundle mainBundle] pathForResource:@"temp" ofType:@"txt"];
+
+ // Create the Bucket to put the Object.
+ @try {
+ [[Constants s3] createBucketWithName:bucketName];
+ }
+ @catch (NSException *e) {
+ NSLog(@"%@", e);
+ return;
+ }
+
+ // Put the file as an object in the bucket.
+ S3PutObjectRequest *putObjectRequest = [[S3PutObjectRequest alloc] initWithKey:keyName inBucket:bucketName];
+ putObjectRequest.filename = filename;
+ [putObjectRequest setDelegate:s3Delegate];
+
+ // When using delegates the return is nil.
+ [[Constants s3] putObject:putObjectRequest];
+}
+
+-(void)getObject
+{
+ NSString *bucketName = [NSString stringWithFormat:@"testing-async-with-s3-for%@", [ACCESS_KEY lowercaseString]];
+ NSString *keyName = @"asyncTestFile";
+
+ // Get the object from the bucket.
+ S3GetObjectRequest *getObjectRequest = [[S3GetObjectRequest alloc] initWithKey:keyName withBucket:bucketName];
+
+ [getObjectRequest setDelegate:s3Delegate];
+
+ // When using delegates the return is nil.
+ [[Constants s3] getObject:getObjectRequest];
+}
+
+-(void)dealloc
+{
+ [s3Delegate dealloc];
+ [super dealloc];
+}
+
+
+@end
View
487 samples/awsBrowser/Classes/S3/S3AsyncViewController.xib
@@ -0,0 +1,487 @@
+<?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">10J567</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">462.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="694890337">
+ <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">S3 Async</string>
+ <object class="NSFont" key="IBUIFont" id="530040016">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">24</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <object class="NSColor" key="IBUITextColor" id="385115802">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <object class="NSColor" key="IBUIHighlightedColor" id="563803797">
+ <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="IBUIButton" id="901571543">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 57}, {125, 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="232686422">
+ <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">Start</string>
+ <reference key="IBUIHighlightedTitleColor" ref="563803797"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="91453116">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ </object>
+ <object class="IBUIButton" id="566457546">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{176, 57}, {124, 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="232686422"/>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Exit</string>
+ <reference key="IBUIHighlightedTitleColor" ref="563803797"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="91453116"/>
+ </object>
+ <object class="IBUILabel" id="564071799">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 132}, {133, 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">Bytes Sent:</string>
+ <reference key="IBUIFont" ref="530040016"/>
+ <reference key="IBUITextColor" ref="385115802"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="522598084">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 217}, {187, 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">Bytes Received:</string>
+ <reference key="IBUIFont" ref="530040016"/>
+ <reference key="IBUITextColor" ref="385115802"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="821430907">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{161, 132}, {86, 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">0</string>
+ <reference key="IBUIFont" ref="530040016"/>
+ <reference key="IBUITextColor" ref="385115802"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="329051582">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{215, 217}, {85, 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">0</string>
+ <reference key="IBUIFont" ref="530040016"/>
+ <reference key="IBUITextColor" ref="385115802"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </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>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </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="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">exit:</string>
+ <reference key="source" ref="566457546"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">10</int>
+ </object>
+ <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">11</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">start:</string>
+ <reference key="source" ref="901571543"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">16</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">bytesIn</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="329051582"/>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">bytesOut</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="821430907"/>
+ </object>
+ <int key="connectionID">22</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="694890337"/>
+ <reference ref="901571543"/>
+ <reference ref="566457546"/>
+ <reference ref="564071799"/>
+ <reference ref="522598084"/>
+ <reference ref="821430907"/>
+ <reference ref="329051582"/>
+ </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">3</int>
+ <reference key="object" ref="694890337"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="901571543"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="566457546"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="564071799"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="522598084"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">19</int>
+ <reference key="object" ref="821430907"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">20</int>
+ <reference key="object" ref="329051582"/>
+ <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>17.IBPluginDependency</string>
+ <string>17.IBViewBoundsToFrameTransform</string>
+ <string>18.IBPluginDependency</string>
+ <string>18.IBViewBoundsToFrameTransform</string>
+ <string>19.IBPluginDependency</string>
+ <string>19.IBViewBoundsToFrameTransform</string>
+ <string>20.IBPluginDependency</string>
+ <string>20.IBViewBoundsToFrameTransform</string>
+ <string>3.IBPluginDependency</string>
+ <string>3.IBViewBoundsToFrameTransform</string>
+ <string>5.IBPluginDependency</string>
+ <string>5.IBViewBoundsToFrameTransform</string>
+ <string>7.IBPluginDependency</string>
+ <string>7.IBViewBoundsToFrameTransform</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>S3AsyncViewController</string>
+ <string>UIResponder</string>
+ <string>{{1159, 315}, {320, 480}}</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwwEAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw1YAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABDIQAAwyMAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw4yAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwjwAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwrgAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABDOgAAwrgAAA</bytes>
+ </object>
+ </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">22</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">S3AsyncViewController</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>exit:</string>
+ <string>start:</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>exit:</string>
+ <string>start:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">exit:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">start:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>bytesIn</string>
+ <string>bytesOut</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UILabel</string>
+ <string>UILabel</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>bytesIn</string>
+ <string>bytesOut</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">bytesIn</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">bytesOut</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Classes/S3/S3AsyncViewController.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="3100" 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
45 samples/awsBrowser/Classes/S3RequestDelegate.h
@@ -0,0 +1,45 @@
+/*
+ * 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/AmazonServiceResponse.h>
+
+@interface S3RequestDelegate:NSObject<AmazonServiceRequestDelegate>
+{
+ UILabel *bytesIn;
+ UILabel *bytesOut;
+
+ @public
+ AmazonServiceResponse *response;
+ NSException *exception;
+ NSError *error;
+}
+
+@property (nonatomic, readonly) AmazonServiceResponse *response;
+@property (nonatomic, readonly) NSError *error;
+@property (nonatomic, readonly) NSException *exception;
+@property (nonatomic, retain) UILabel *bytesIn;
+@property (nonatomic, retain) UILabel *bytesOut;
+
+-(bool)isFinishedOrFailed;
+-(void)request:(AmazonServiceRequest *)request didReceiveResponse:(NSURLResponse *)response;
+-(void)request:(AmazonServiceRequest *)request didCompleteWithResponse:(AmazonServiceResponse *)response;
+-(void)request:(AmazonServiceRequest *)request didReceiveData:(NSData *)data;
+-(void)request:(AmazonServiceRequest *)request didSendData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
+-(void)request:(AmazonServiceRequest *)request didFailWithError:(NSError *)error;
+-(void)request:(AmazonServiceRequest *)request didFailWithServiceException:(NSException *)exception;
+
+
+
+@end
View
101 samples/awsBrowser/Classes/S3RequestDelegate.m
@@ -0,0 +1,101 @@
+/*
+ * 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 "S3RequestDelegate.h"
+
+@implementation S3RequestDelegate
+
+@synthesize response;
+@synthesize error;
+@synthesize exception;
+@synthesize bytesIn;
+@synthesize bytesOut;
+
+-(id)init
+{
+ self = [super init];
+ if (self)
+ {
+ response = nil;
+ exception = nil;
+ error = nil;
+ bytesIn = nil;
+ bytesOut = nil;
+ }
+ return self;
+}
+
+-(bool)isFinishedOrFailed
+{
+ return (response != nil || error != nil || exception != nil);
+}
+
+-(void)request:(AmazonServiceRequest *)request didReceiveResponse:(NSURLResponse *)aResponse
+{
+ NSLog(@"didReceiveResponse");
+}
+
+-(void)request:(AmazonServiceRequest *)request didCompleteWithResponse:(AmazonServiceResponse *)aResponse
+{
+ NSLog(@"didCompleteWithResponse : %@", aResponse);
+ [response release];
+ response = [aResponse retain];
+}
+
+-(void)request:(AmazonServiceRequest *)request didReceiveData:(NSData *)data
+{
+ NSLog(@"didReceiveData");
+ int total = [bytesIn.text intValue];
+ total += [data length];
+ bytesIn.text = [NSString stringWithFormat:@"%d", total];
+}
+
+-(void)request:(AmazonServiceRequest *)request didSendData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
+{
+ NSLog(@"didSendData");
+ int total = [bytesOut.text intValue];
+ total += bytesWritten;
+ bytesOut.text = [NSString stringWithFormat:@"%d", total];
+}
+
+-(void)request:(AmazonServiceRequest *)request didFailWithError:(NSError *)theError
+{
+ NSLog(@"didFailWithError : %@", theError);
+ [error release];
+ error = [theError retain];
+}
+
+-(void)request:(AmazonServiceRequest *)request didFailWithServiceException:(NSException *)theException
+{
+ NSLog(@"didFailWithServiceException : %@", theException);
+ [exception release];
+ exception = [theException retain];
+}
+
+-(void)dealloc
+{
+ [error release];
+ [exception release];
+ [response release];
+
+ [super dealloc];
+}
+
+@end
+
+
+
+
+
View
42 samples/awsBrowser/Classes/SdbAsyncViewController.h
@@ -0,0 +1,42 @@
+/*
+ * 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>
+#import "SdbRequestDelegate.h"
+
+@interface SdbAsyncViewController:UIViewController {
+ IBOutlet UILabel *bytesIn;
+ IBOutlet UILabel *bytesOut;
+
+ SdbRequestDelegate *sdbDelegate;
+ NSTimer *timer;
+ int counter;
+ NSString *domainName;
+}
+
+@property (nonatomic, retain) UILabel *bytesIn;
+@property (nonatomic, retain) UILabel *bytesOut;
+
+-(IBAction)start:(id)sender;
+-(IBAction)exit:(id)sender;
+
+-(void)perform;
+
+-(void)createDomain;
+-(void)putAttributes;
+-(void)selectAttributes;
+
+@end
View
149 samples/awsBrowser/Classes/SdbAsyncViewController.m
@@ -0,0 +1,149 @@
+/*
+ * 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 "SdbAsyncViewController.h"
+#import "Constants.h"
+
+
+@implementation SdbAsyncViewController
+
+
+@synthesize bytesIn, bytesOut;
+
+
+-(id)init
+{
+ // Create the SDB Request Delegate
+ sdbDelegate = [[SdbRequestDelegate alloc] init];
+ timer = nil;
+ counter = 0;
+ domainName = @"testing-async-with-sdb";
+
+ return [super initWithNibName:@"SdbAsyncViewController" bundle:nil];
+}
+
+-(void)viewWillAppear:(BOOL)animated
+{
+ sdbDelegate.bytesIn = bytesIn;
+ sdbDelegate.bytesOut = bytesOut;
+}
+
+-(IBAction)start:(id)sender
+{
+ if (timer != nil) {
+ [timer invalidate];
+ timer = nil;
+ }
+
+ timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(perform) userInfo:nil repeats:YES];
+ counter = 0;
+}
+
+-(IBAction)exit:(id)sender
+{
+ if (timer != nil) {
+ [timer invalidate];
+ timer = nil;
+ }
+
+ timer = nil;
+ counter = 0;
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+-(void)perform
+{
+ if (counter > 9) {
+ [timer invalidate];
+ timer = nil;
+ counter = 0;
+ }
+ else {
+ if (counter == 0) {
+ [self createDomain];
+ }
+
+ [self putAttributes];
+ [self selectAttributes];
+
+ counter++;
+ }
+}
+
+-(void)createDomain
+{
+ @try {
+ SimpleDBCreateDomainRequest *createDomainRequest = [[[SimpleDBCreateDomainRequest alloc] initWithDomainName:domainName] autorelease];
+ [createDomainRequest setDelegate:sdbDelegate];
+ [[Constants sdb] createDomain:createDomainRequest];
+ }
+ @catch (NSException *exception) {
+ NSLog(@"%@", exception);
+ }
+}
+
+-(void)putAttributes
+{
+ @try {
+ SimpleDBReplaceableAttribute *replacableAttribute1 = [[[SimpleDBReplaceableAttribute alloc] initWithName:@"Attribute1" andValue:@"Value1" andReplace:YES] autorelease];
+ SimpleDBReplaceableAttribute *replacableAttribute2 = [[[SimpleDBReplaceableAttribute alloc] initWithName:@"Attribute2" andValue:@"Value2" andReplace:YES] autorelease];
+ SimpleDBReplaceableAttribute *replacableAttribute3 = [[[SimpleDBReplaceableAttribute alloc] initWithName:@"Attribute3" andValue:@"Value3" andReplace:YES] autorelease];
+ SimpleDBReplaceableAttribute *replacableAttribute4 = [[[SimpleDBReplaceableAttribute alloc] initWithName:@"Attribute4" andValue:@"Value4" andReplace:YES] autorelease];
+
+ NSMutableArray *attributes = [[[NSMutableArray alloc] initWithCapacity:4] autorelease];
+ [attributes addObject:replacableAttribute1];
+ [attributes addObject:replacableAttribute2];
+ [attributes addObject:replacableAttribute3];
+ [attributes addObject:replacableAttribute4];
+ for (int i = 0; i < 10; i++) {
+ NSString *itemName = [NSString stringWithFormat:@"Item-%d", i];
+
+ SimpleDBPutAttributesRequest *putAttributesRequest = [[SimpleDBPutAttributesRequest alloc] initWithDomainName:domainName andItemName:itemName andAttributes:attributes];
+ [putAttributesRequest setDelegate:sdbDelegate];
+
+ [[Constants sdb] putAttributes:putAttributesRequest];
+ }
+ }
+ @catch (NSException *exception) {
+ NSLog(@"%@", exception);
+ }
+}
+
+-(void)selectAttributes
+{
+ @try {
+ NSString *selectExpression = [NSString stringWithFormat:@"select * from `%@`", domainName];
+
+ SimpleDBSelectRequest *selectRequest = [[[SimpleDBSelectRequest alloc] initWithSelectExpression:selectExpression] autorelease];
+ [selectRequest setDelegate:sdbDelegate];
+ selectRequest.consistentRead = YES;
+
+ [[Constants sdb] select:selectRequest];
+ }
+ @catch (NSException *exception) {
+ NSLog(@"%@", exception);
+ }
+}
+
+-(void)dealloc
+{
+ [sdbDelegate dealloc];
+ [domainName release];
+ [super dealloc];
+}
+
+
+@end
View
487 samples/awsBrowser/Classes/SdbAsyncViewController.xib
@@ -0,0 +1,487 @@
+<?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">10J567</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">462.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="694890337">
+ <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">SimpleDB Async</string>
+ <object class="NSFont" key="IBUIFont" id="538679829">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">24</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <object class="NSColor" key="IBUITextColor" id="672201260">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <object class="NSColor" key="IBUIHighlightedColor" id="563803797">
+ <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="IBUIButton" id="901571543">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 57}, {130, 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="232686422">
+ <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">Start</string>
+ <reference key="IBUIHighlightedTitleColor" ref="563803797"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="91453116">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ </object>
+ <object class="IBUIButton" id="409450584">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{167, 57}, {133, 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="232686422"/>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Exit</string>
+ <reference key="IBUIHighlightedTitleColor" ref="563803797"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="91453116"/>
+ </object>
+ <object class="IBUILabel" id="506499009">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 133}, {187, 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">Bytes Received:</string>
+ <reference key="IBUIFont" ref="538679829"/>
+ <reference key="IBUITextColor" ref="672201260"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="57403495">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 257}, {138, 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">Bytes Sent:</string>
+ <reference key="IBUIFont" ref="538679829"/>
+ <reference key="IBUITextColor" ref="672201260"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="574849962">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{215, 133}, {85, 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">0</string>
+ <reference key="IBUIFont" ref="538679829"/>
+ <reference key="IBUITextColor" ref="672201260"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUILabel" id="353198405">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{167, 257}, {134, 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">0</string>
+ <reference key="IBUIFont" ref="538679829"/>
+ <reference key="IBUITextColor" ref="672201260"/>
+ <reference key="IBUIHighlightedColor" ref="563803797"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </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>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </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">11</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">exit:</string>
+ <reference key="source" ref="409450584"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">18</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">start:</string>
+ <reference key="source" ref="901571543"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">bytesIn</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="574849962"/>
+ </object>
+ <int key="connectionID">27</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">bytesOut</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="353198405"/>
+ </object>
+ <int key="connectionID">28</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="694890337"/>
+ <reference ref="409450584"/>
+ <reference ref="901571543"/>
+ <reference ref="506499009"/>
+ <reference ref="57403495"/>
+ <reference ref="574849962"/>
+ <reference ref="353198405"/>
+ </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">3</int>
+ <reference key="object" ref="694890337"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="901571543"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="409450584"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">23</int>
+ <reference key="object" ref="506499009"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">24</int>
+ <reference key="object" ref="57403495"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">25</int>
+ <reference key="object" ref="574849962"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">26</int>
+ <reference key="object" ref="353198405"/>
+ <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>15.IBPluginDependency</string>
+ <string>15.IBViewBoundsToFrameTransform</string>
+ <string>23.IBPluginDependency</string>
+ <string>23.IBViewBoundsToFrameTransform</string>
+ <string>24.IBPluginDependency</string>
+ <string>24.IBViewBoundsToFrameTransform</string>
+ <string>25.IBPluginDependency</string>
+ <string>25.IBViewBoundsToFrameTransform</string>
+ <string>26.IBPluginDependency</string>
+ <string>26.IBViewBoundsToFrameTransform</string>
+ <string>3.IBPluginDependency</string>
+ <string>3.IBViewBoundsToFrameTransform</string>
+ <string>5.IBPluginDependency</string>
+ <string>5.IBViewBoundsToFrameTransform</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>SdbAsyncViewController</string>
+ <string>UIResponder</string>
+ <string>{{1237, 304}, {320, 480}}</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABByAAAwsIAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">AUGgAABDBQAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw2IAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCOAAAwz0AAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCOAAAw6CAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwjwAAA</bytes>
+ </object>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <object class="NSAffineTransform">
+ <bytes key="NSTransformStruct">AUGgAABCZAAAA</bytes>
+ </object>
+ </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">29</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">SdbAsyncViewController</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>exit:</string>
+ <string>start:</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>exit:</string>
+ <string>start:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">exit:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">start:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>bytesIn</string>
+ <string>bytesOut</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UILabel</string>
+ <string>UILabel</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>bytesIn</string>
+ <string>bytesOut</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">bytesIn</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">bytesOut</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Classes/SdbAsyncViewController.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="3100" 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
46 samples/awsBrowser/Classes/SdbRequestDelegate.h
@@ -0,0 +1,46 @@
+/*
+ * 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/AmazonServiceResponse.h>
+
+@interface SdbRequestDelegate:NSObject<AmazonServiceRequestDelegate>
+{
+ UILabel *bytesIn;
+ UILabel *bytesOut;
+
+ @public
+ AmazonServiceResponse *response;
+ NSException *exception;
+ NSError *error;
+}
+
+@property (nonatomic, readonly) AmazonServiceResponse *response;
+@property (nonatomic, readonly) NSError *error;
+@property (nonatomic, readonly) NSException *exception;
+
+@property (nonatomic, retain) UILabel *bytesIn;
+@property (nonatomic, retain) UILabel *bytesOut;
+
+-(bool)isFinishedOrFailed;
+-(void)request:(AmazonServiceRequest *)request didReceiveResponse:(NSURLResponse *)response;
+-(void)request:(AmazonServiceRequest *)request didCompleteWithResponse:(AmazonServiceResponse *)response;
+-(void)request:(AmazonServiceRequest *)request didReceiveData:(NSData *)data;
+-(void)request:(AmazonServiceRequest *)request didSendData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
+-(void)request:(AmazonServiceRequest *)request didFailWithError:(NSError *)error;
+-(void)request:(AmazonServiceRequest *)request didFailWithServiceException:(NSException *)exception;
+
+
+
+@end
View
100 samples/awsBrowser/Classes/SdbRequestDelegate.m
@@ -0,0 +1,100 @@
+/*
+ * 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 "SdbRequestDelegate.h"
+
+@implementation SdbRequestDelegate
+
+@synthesize response;
+@synthesize error;
+@synthesize exception;
+@synthesize bytesIn, bytesOut;
+
+-(id)init
+{
+ self = [super init];
+ if (self)
+ {
+ response = nil;
+ exception = nil;
+ error = nil;
+ bytesIn = nil;
+ bytesOut = nil;
+ }
+ return self;
+}
+
+-(bool)isFinishedOrFailed
+{
+ return (response != nil || error != nil || exception != nil);
+}
+
+-(void)request:(AmazonServiceRequest *)request didReceiveResponse:(NSURLResponse *)aResponse
+{
+ NSLog(@"didReceiveResponse");
+}
+
+-(void)request:(AmazonServiceRequest *)request didCompleteWithResponse:(AmazonServiceResponse *)aResponse
+{
+ NSLog(@"didCompleteWithResponse : %@", aResponse);
+ [response release];
+ response = [aResponse retain];
+}