Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added httpriot as submodule, build automatically.

  • Loading branch information...
commit 3c1dcdfa69c5f6a1c6b93cc25e0126744696bbd8 1 parent 9cff14d
@codebutler authored
Showing with 123 additions and 1,569 deletions.
  1. +3 −0  .gitmodules
  2. +119 −12 FoursquareX.xcodeproj/project.pbxproj
  3. +0 −1  Frameworks/HTTPRiot.framework/HTTPRiot
  4. +0 −1  Frameworks/HTTPRiot.framework/Headers
  5. +0 −1  Frameworks/HTTPRiot.framework/PrivateHeaders
  6. +0 −1  Frameworks/HTTPRiot.framework/Resources
  7. BIN  Frameworks/HTTPRiot.framework/Versions/A/HTTPRiot
  8. +0 −14 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLDocumentSerialize.h
  9. +0 −191 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLElementSerialize.h
  10. +0 −62 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLSerialization.h
  11. +0 −18 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRBase64.h
  12. +0 −15 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatJSON.h
  13. +0 −14 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatXML.h
  14. +0 −47 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatterProtocol.h
  15. +0 −67 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRGlobal.h
  16. +0 −23 Frameworks/HTTPRiot.framework/Versions/A/Headers/HROperationQueue.h
  17. +0 −101 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRRequestOperation.h
  18. +0 −66 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRResponseDelegate.h
  19. +0 −205 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRRestModel.h
  20. +0 −127 Frameworks/HTTPRiot.framework/Versions/A/Headers/HTTPRiot.h
  21. +0 −50 Frameworks/HTTPRiot.framework/Versions/A/Headers/JSON.h
  22. +0 −6 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSDictionary+ParamUtils.h
  23. +0 −15 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSObject+InvocationUtils.h
  24. +0 −68 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSObject+SBJSON.h
  25. +0 −5 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSString+EscapingUtils.h
  26. +0 −58 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSString+SBJSON.h
  27. +0 −75 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJSON.h
  28. +0 −86 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonBase.h
  29. +0 −87 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonParser.h
  30. +0 −129 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonWriter.h
  31. +0 −1  Frameworks/HTTPRiot.framework/Versions/A/PrivateHeaders/HTTPRiot_Prefix.pch
  32. +0 −22 Frameworks/HTTPRiot.framework/Versions/A/Resources/Info.plist
  33. +0 −1  Frameworks/HTTPRiot.framework/Versions/Current
  34. +1 −0  httpriot
  35. BIN  menu_icon_alt.png
View
3  .gitmodules
@@ -0,0 +1,3 @@
+[submodule "httpriot"]
+ path = httpriot
+ url = git://github.com/codebutler/httpriot.git
View
131 FoursquareX.xcodeproj/project.pbxproj
@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
+ 0704F63B123C0AC5008343B3 /* menu_icon_alt.png in Resources */ = {isa = PBXBuildFile; fileRef = 0704F63A123C0AC5008343B3 /* menu_icon_alt.png */; };
+ 0704F841123C0FD5008343B3 /* HTTPRiot.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0704F83E123C0FB6008343B3 /* HTTPRiot.framework */; };
071D385610E80D0B003ADA42 /* BWToolkitFramework.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 071D385410E80D0B003ADA42 /* BWToolkitFramework.framework */; };
071D385710E80D0B003ADA42 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 071D385510E80D0B003ADA42 /* Sparkle.framework */; };
072F111F1103D68B00EFF027 /* PFMoveApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = 072F111E1103D68B00EFF027 /* PFMoveApplication.m */; };
@@ -36,6 +38,8 @@
075289B510FEC428009032C7 /* foursquarex.icns in Resources */ = {isa = PBXBuildFile; fileRef = 075289B410FEC428009032C7 /* foursquarex.icns */; };
075289C810FECE37009032C7 /* megaphone_dark.png in Resources */ = {isa = PBXBuildFile; fileRef = 075289C710FECE37009032C7 /* megaphone_dark.png */; };
075C9ECC111A9B4C006DCF33 /* DockIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 075C9ECB111A9B4C006DCF33 /* DockIcon.m */; };
+ 076D99A9123C134000AA96ED /* HTTPRiot.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0704F83E123C0FB6008343B3 /* HTTPRiot.framework */; };
+ 076D99AF123C136F00AA96ED /* HTTPRiot.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 0704F83E123C0FB6008343B3 /* HTTPRiot.framework */; };
07946A37112A4D0300EACA00 /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07946A36112A4D0300EACA00 /* Growl.framework */; };
07946A3F112A4D1000EACA00 /* Growl.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 07946A36112A4D0300EACA00 /* Growl.framework */; };
079FABE310CEE13100D4A730 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 079FABE210CEE13100D4A730 /* SystemConfiguration.framework */; };
@@ -60,18 +64,53 @@
07BB4A7610D03F5000D1A536 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 07BB4A7410D03F5000D1A536 /* MainMenu.xib */; };
07BB4A8210D03FCA00D1A536 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 07BB4A8010D03FCA00D1A536 /* InfoPlist.strings */; };
07BB4B0310D05D0900D1A536 /* CheckinWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 07BB4B0210D05D0900D1A536 /* CheckinWindowController.m */; };
- 07BB4B1C10D05E4600D1A536 /* HTTPRiot.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07BB4B1A10D05E4600D1A536 /* HTTPRiot.framework */; };
- 07BB4B5D10D05E4E00D1A536 /* HTTPRiot.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 07BB4B1A10D05E4600D1A536 /* HTTPRiot.framework */; };
07CFBE93112CBDDA00060EE2 /* AvatarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 07CFBE92112CBDDA00060EE2 /* AvatarManager.m */; };
07DF5AA611B0C99300659FFA /* NSURLAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 07DF5AA511B0C99300659FFA /* NSURLAdditions.m */; };
07E7978010E721070024FF20 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07E7977F10E721070024FF20 /* Carbon.framework */; };
07F934AB10CDEA3500E2631A /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07F934AA10CDEA3500E2631A /* CoreLocation.framework */; };
07FE4C8B112E10DB007AA380 /* Credits.html in Resources */ = {isa = PBXBuildFile; fileRef = 07FE4C8A112E10DB007AA380 /* Credits.html */; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
- C3639CB61148652F001324C3 /* menu_icon_alt.png in Resources */ = {isa = PBXBuildFile; fileRef = C3639CB51148652F001324C3 /* menu_icon_alt.png */; };
F5600E971103D25800376CEC /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F5600E961103D25800376CEC /* Security.framework */; };
/* End PBXBuildFile section */
+/* Begin PBXContainerItemProxy section */
+ 0704F837123C0FB6008343B3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = D0298A650F3FFBBD00EC8C01;
+ remoteInfo = libhttpriot;
+ };
+ 0704F839123C0FB6008343B3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = D038BDCE0FF298330041F570;
+ remoteInfo = iPhoneSampleApp;
+ };
+ 0704F83B123C0FB6008343B3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = D0788AE80FABAB3600C3207D;
+ remoteInfo = iPhoneUnitTestsRunner;
+ };
+ 0704F83D123C0FB6008343B3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 8DC2EF5B0486A6940098B216;
+ remoteInfo = HTTPRiot;
+ };
+ 0704F83F123C0FC4008343B3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ proxyType = 1;
+ remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
+ remoteInfo = HTTPRiot;
+ };
+/* End PBXContainerItemProxy section */
+
/* Begin PBXCopyFilesBuildPhase section */
0762382510CCC2D200C6C41E /* Copy Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
@@ -79,18 +118,29 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
+ 076D99AF123C136F00AA96ED /* HTTPRiot.framework in Copy Frameworks */,
07A00A6E11AF916A002D45C3 /* GoogleToolboxForMac.framework in Copy Frameworks */,
07946A3F112A4D1000EACA00 /* Growl.framework in Copy Frameworks */,
071D385610E80D0B003ADA42 /* BWToolkitFramework.framework in Copy Frameworks */,
07A9AB5F10E96D3D00CE8EC7 /* Sparkle.framework in Copy Frameworks */,
- 07BB4B5D10D05E4E00D1A536 /* HTTPRiot.framework in Copy Frameworks */,
);
name = "Copy Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
+ 076D99BB123C13BE00AA96ED /* CopyFiles */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 16;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
+ 0704F63A123C0AC5008343B3 /* menu_icon_alt.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = menu_icon_alt.png; path = Resources/menu_icon_alt.png; sourceTree = "<group>"; };
+ 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = HTTPRiot.xcodeproj; path = httpriot/HTTPRiot.xcodeproj; sourceTree = SOURCE_ROOT; };
071D385410E80D0B003ADA42 /* BWToolkitFramework.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BWToolkitFramework.framework; path = Frameworks/BWToolkitFramework.framework; sourceTree = "<group>"; };
071D385510E80D0B003ADA42 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = Frameworks/Sparkle.framework; sourceTree = "<group>"; };
072F111D1103D68B00EFF027 /* PFMoveApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PFMoveApplication.h; path = "3rd Party/PFMoveApplication.h"; sourceTree = "<group>"; };
@@ -172,7 +222,6 @@
07BB4A8110D03FCA00D1A536 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = Resources/English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
07BB4B0110D05D0900D1A536 /* CheckinWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CheckinWindowController.h; sourceTree = "<group>"; };
07BB4B0210D05D0900D1A536 /* CheckinWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CheckinWindowController.m; sourceTree = "<group>"; };
- 07BB4B1A10D05E4600D1A536 /* HTTPRiot.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HTTPRiot.framework; path = Frameworks/HTTPRiot.framework; sourceTree = "<group>"; };
07CFBE91112CBDDA00060EE2 /* AvatarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AvatarManager.h; sourceTree = "<group>"; };
07CFBE92112CBDDA00060EE2 /* AvatarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AvatarManager.m; sourceTree = "<group>"; };
07DF5AA411B0C99300659FFA /* NSURLAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSURLAdditions.h; sourceTree = "<group>"; };
@@ -185,7 +234,6 @@
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
8D1107320486CEB800E47090 /* FoursquareX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FoursquareX.app; sourceTree = BUILT_PRODUCTS_DIR; };
- C3639CB51148652F001324C3 /* menu_icon_alt.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = menu_icon_alt.png; sourceTree = "<group>"; };
F5600E961103D25800376CEC /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
@@ -194,23 +242,35 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 0704F841123C0FD5008343B3 /* HTTPRiot.framework in Frameworks */,
07A00AED11AF9293002D45C3 /* GoogleToolboxForMac.framework in Frameworks */,
07A9ABDA10E97C7500CE8EC7 /* BWToolkitFramework.framework in Frameworks */,
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
07F934AB10CDEA3500E2631A /* CoreLocation.framework in Frameworks */,
079FABE310CEE13100D4A730 /* SystemConfiguration.framework in Frameworks */,
- 07BB4B1C10D05E4600D1A536 /* HTTPRiot.framework in Frameworks */,
072FA18C10DAFBA2008293D7 /* WebKit.framework in Frameworks */,
07E7978010E721070024FF20 /* Carbon.framework in Frameworks */,
071D385710E80D0B003ADA42 /* Sparkle.framework in Frameworks */,
F5600E971103D25800376CEC /* Security.framework in Frameworks */,
07946A37112A4D0300EACA00 /* Growl.framework in Frameworks */,
+ 076D99A9123C134000AA96ED /* HTTPRiot.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
+ 0704F830123C0FB6008343B3 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 0704F838123C0FB6008343B3 /* libhttpriot.a */,
+ 0704F83A123C0FB6008343B3 /* iPhoneSampleApp.app */,
+ 0704F83C123C0FB6008343B3 /* iPhoneUnitTestsRunner.app */,
+ 0704F83E123C0FB6008343B3 /* HTTPRiot.framework */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
072FA04210DADA94008293D7 /* 3rd Party */ = {
isa = PBXGroup;
children = (
@@ -329,7 +389,6 @@
071D385410E80D0B003ADA42 /* BWToolkitFramework.framework */,
071D385510E80D0B003ADA42 /* Sparkle.framework */,
072FA18B10DAFBA2008293D7 /* WebKit.framework */,
- 07BB4B1A10D05E4600D1A536 /* HTTPRiot.framework */,
079FABE210CEE13100D4A730 /* SystemConfiguration.framework */,
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
07F934AA10CDEA3500E2631A /* CoreLocation.framework */,
@@ -360,6 +419,7 @@
29B97314FDCFA39411CA2CEA /* FoursquareX */ = {
isa = PBXGroup;
children = (
+ 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */,
07BB4A0B10D03F0200D1A536 /* Classes */,
29B97315FDCFA39411CA2CEA /* Other Sources */,
29B97317FDCFA39411CA2CEA /* Resources */,
@@ -381,6 +441,7 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
+ 0704F63A123C0AC5008343B3 /* menu_icon_alt.png */,
075289B410FEC428009032C7 /* foursquarex.icns */,
0752819210FC34E3009032C7 /* UpdateKey.pem */,
07BB4A7410D03F5000D1A536 /* MainMenu.xib */,
@@ -390,7 +451,6 @@
07A9AB4210E96D1B00CE8EC7 /* megaphone.png */,
075289C710FECE37009032C7 /* megaphone_dark.png */,
07A9AB4310E96D1B00CE8EC7 /* menu_icon.png */,
- C3639CB51148652F001324C3 /* menu_icon_alt.png */,
07A9AB4410E96D1B00CE8EC7 /* reload.tiff */,
07BB4A8010D03FCA00D1A536 /* InfoPlist.strings */,
07BB4A7010D03F3800D1A536 /* FoursquareX-Info.plist */,
@@ -423,10 +483,12 @@
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
0762382510CCC2D200C6C41E /* Copy Frameworks */,
+ 076D99BB123C13BE00AA96ED /* CopyFiles */,
);
buildRules = (
);
dependencies = (
+ 0704F840123C0FC4008343B3 /* PBXTargetDependency */,
);
name = FoursquareX;
productInstallPath = "$(HOME)/Applications";
@@ -444,6 +506,12 @@
hasScannedForEncodings = 1;
mainGroup = 29B97314FDCFA39411CA2CEA /* FoursquareX */;
projectDirPath = "";
+ projectReferences = (
+ {
+ ProductGroup = 0704F830123C0FB6008343B3 /* Products */;
+ ProjectRef = 0704F670123C0C47008343B3 /* HTTPRiot.xcodeproj */;
+ },
+ );
projectRoot = "";
targets = (
8D1107260486CEB800E47090 /* FoursquareX */,
@@ -451,6 +519,37 @@
};
/* End PBXProject section */
+/* Begin PBXReferenceProxy section */
+ 0704F838123C0FB6008343B3 /* libhttpriot.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libhttpriot.a;
+ remoteRef = 0704F837123C0FB6008343B3 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 0704F83A123C0FB6008343B3 /* iPhoneSampleApp.app */ = {
+ isa = PBXReferenceProxy;
+ fileType = wrapper.application;
+ path = iPhoneSampleApp.app;
+ remoteRef = 0704F839123C0FB6008343B3 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 0704F83C123C0FB6008343B3 /* iPhoneUnitTestsRunner.app */ = {
+ isa = PBXReferenceProxy;
+ fileType = wrapper.application;
+ path = iPhoneUnitTestsRunner.app;
+ remoteRef = 0704F83B123C0FB6008343B3 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 0704F83E123C0FB6008343B3 /* HTTPRiot.framework */ = {
+ isa = PBXReferenceProxy;
+ fileType = wrapper.framework;
+ path = HTTPRiot.framework;
+ remoteRef = 0704F83D123C0FB6008343B3 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+/* End PBXReferenceProxy section */
+
/* Begin PBXResourcesBuildPhase section */
8D1107290486CEB800E47090 /* Resources */ = {
isa = PBXResourcesBuildPhase;
@@ -472,7 +571,7 @@
075289B510FEC428009032C7 /* foursquarex.icns in Resources */,
075289C810FECE37009032C7 /* megaphone_dark.png in Resources */,
07FE4C8B112E10DB007AA380 /* Credits.html in Resources */,
- C3639CB61148652F001324C3 /* menu_icon_alt.png in Resources */,
+ 0704F63B123C0AC5008343B3 /* menu_icon_alt.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -518,6 +617,14 @@
};
/* End PBXSourcesBuildPhase section */
+/* Begin PBXTargetDependency section */
+ 0704F840123C0FC4008343B3 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ name = HTTPRiot;
+ targetProxy = 0704F83F123C0FC4008343B3 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
/* Begin PBXVariantGroup section */
07BB4A7410D03F5000D1A536 /* MainMenu.xib */ = {
isa = PBXVariantGroup;
@@ -544,11 +651,10 @@
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
+ "$(CONFIGURATION_BUILD_DIR)/$(FRAMEWORKS_FOLDER_PATH)",
"$(SRCROOT)/Frameworks",
"$(inherited)",
"\"$(SRCROOT)\"",
- "\"$(SRCROOT)/../../Sources/httpriot/build/Debug\"",
- "\"$(SRCROOT)/../../Sources/BGHUDAppKit/build/Debug\"",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
@@ -556,6 +662,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Source/Other Sources/FoursquareX_Prefix.pch";
+ HEADER_SEARCH_PATHS = "";
INSTALL_PATH = "$(HOME)/Applications";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
PRODUCT_NAME = FoursquareX;
View
1  Frameworks/HTTPRiot.framework/HTTPRiot
View
1  Frameworks/HTTPRiot.framework/Headers
View
1  Frameworks/HTTPRiot.framework/PrivateHeaders
View
1  Frameworks/HTTPRiot.framework/Resources
View
BIN  Frameworks/HTTPRiot.framework/Versions/A/HTTPRiot
Binary file not shown
View
14 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLDocumentSerialize.h
@@ -1,14 +0,0 @@
-//
-// NSXMLDocument+Serialize.h
-// AIXMLSerialize
-//
-// Created by Justin Palmer on 2/24/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "AIXMLSerialization.h"
-
-
-@interface NSXMLDocument (Serialize)
-- (NSMutableDictionary *)toDictionary;
-@end
View
191 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLElementSerialize.h
@@ -1,191 +0,0 @@
-//
-// NSXMLElement+Serialize.h
-// AIXMLSerialize
-//
-// Created by Justin Palmer on 2/24/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "AIXMLSerialization.h"
-
-@interface NSXMLElement (Serialize)
-/**
- * Return this elements attributes as an NSDictionary
- */
-- (NSDictionary *)attributesAsDictionary;
-
-/**
- * Transform this NSXMLElement and all of its children to an NSDictionary.
- *
- * Given the XML below:
- * @code
- * <bill session="111" type="hr" number="157" updated="2009-02-14T16:25:06-05:00">
- * <status><vote date="1234459620" datetime="2009-02-12T13:27:00-05:00" where="h" result="pass" how="roll" roll="63"/></status>
- *
- * <introduced date="1234328400" datetime="2009-02-11"/>
- * <titles>
- * <title type="official" as="introduced">Providing for consideration of motions to suspend the rules, and for other purposes.</title>
- * </titles>
- * <sponsor id="412192"/>
- * <cosponsors>
- *
- * </cosponsors>
- * <actions>
- * <action date="1234392180" datetime="2009-02-11T18:43:00-05:00"><text>The House Committee on Rules reported an original measure, H. Rept. 111-14, by Mr. Perlmutter.</text></action>
- * <action date="1234392180" datetime="2009-02-11T18:43:00-05:00"><text>The resolutions authorizes the Speaker to entertain motions that the House suspend the rules at any time through the legislative day of February 13, 2009. The resolution also provides that the Speaker or her designee shall consult with the Minority Leader or his designee on the designation of any matter for consideration under suspension of the rules pursuant to the resolution. The resolution also provides that H. Res. 10 is amended to change the hour of daily meeting of the House to 9:00 a.m. for Fridays and Saturdays.</text></action>
- * <calendar date="1234392240" datetime="2009-02-11T18:44:00-05:00"><text>Placed on the House Calendar, Calendar No. 9.</text></calendar>
- * <action date="1234449000" datetime="2009-02-12T10:30:00-05:00"><text>Considered as privileged matter.</text><reference label="consideration" ref="CR H1254-1260"/></action>
- * <action date="1234449000" datetime="2009-02-12T10:30:00-05:00"><text>DEBATE - The House proceeded with one hour of debate on H. Res. 157.</text></action>
- * <action date="1234452420" datetime="2009-02-12T11:27:00-05:00"><text>The previous question was ordered without objection.</text><reference label="consideration" ref="CR H1260"/></action>
- * <action date="1234452420" datetime="2009-02-12T11:27:00-05:00"><text>POSTPONED PROCEEDINGS - At the conclusion of debate on H.Res. 157, the Chair put the question on the agreeing to the resolution, and by voice vote, announced that the ayes had prevailed. Ms. Foxx demanded the yeas and nays and the Chair postponed further proceedings on the resolution until later in the legislative day.</text></action>
- * <action date="1234458060" datetime="2009-02-12T13:01:00-05:00"><text>Considered as unfinished business.</text><reference label="consideration" ref="CR H1261"/></action>
- * <vote date="1234459620" how="roll" roll="63" datetime="2009-02-12T13:27:00-05:00" where="h" type="vote" result="pass"><text>On agreeing to the resolution Agreed to by the Yeas and Nays: 248 - 174 (Roll no. 63).</text><reference label="text" ref="CR H1255"/></vote>
- * </actions>
- * <committees>
- * <committee name="House Rules" subcommittee="" activity="Origin, Reporting"/>
- * </committees>
- * <relatedbills>
- * <bill relation="unknown" session="111" type="hr" number="10"/>
- * </relatedbills>
- * <subjects>
- *
- * </subjects>
- * <amendments>
- *
- * </amendments>
- * <summary>
- *
- * </summary>
- * </bill>
- * @endcode
- *
- * Generates an NSDictionary
- * @code
- * bill = {
- * actions = {
- * action = (
- * {
- * date = 1234392180;
- * datetime = "2009-02-11T18:43:00-05:00";
- * text = "The House Committee on Rules reported an original measure, H. Rept. 111-14, by Mr. Perlmutter.";
- * },
- * {
- * date = 1234392180;
- * datetime = "2009-02-11T18:43:00-05:00";
- * text = "The resolutions authorizes the Speaker to entertain motions that the House suspend the rules at any time through the legislative day of February 13, 2009. The resolution also provides that the Speaker or her designee shall consult with the Minority Leader or his designee on the designation of any matter for consideration under suspension of the rules pursuant to the resolution. The resolution also provides that H. Res. 10 is amended to change the hour of daily meeting of the House to 9:00 a.m. for Fridays and Saturdays.";
- * },
- * {
- * date = 1234449000;
- * datetime = "2009-02-12T10:30:00-05:00";
- * reference = {
- * label = consideration;
- * ref = "CR H1254-1260";
- * };
- * text = "Considered as privileged matter.";
- * },
- * {
- * date = 1234449000;
- * datetime = "2009-02-12T10:30:00-05:00";
- * text = "DEBATE - The House proceeded with one hour of debate on H. Res. 157.";
- * },
- * {
- * date = 1234452420;
- * datetime = "2009-02-12T11:27:00-05:00";
- * reference = {
- * label = consideration;
- * ref = "CR H1260";
- * };
- * text = "The previous question was ordered without objection.";
- * },
- * {
- * date = 1234452420;
- * datetime = "2009-02-12T11:27:00-05:00";
- * text = "POSTPONED PROCEEDINGS - At the conclusion of debate on H.Res. 157, the Chair put the question on the agreeing to the resolution, and by voice vote, announced that the ayes had prevailed. Ms. Foxx demanded the yeas and nays and the Chair postponed further proceedings on the resolution until later in the legislative day.";
- * },
- * {
- * date = 1234458060;
- * datetime = "2009-02-12T13:01:00-05:00";
- * reference = {
- * label = consideration;
- * ref = "CR H1261";
- * };
- * text = "Considered as unfinished business.";
- * }
- * );
- * calendar = {
- * date = 1234392240;
- * datetime = "2009-02-11T18:44:00-05:00";
- * text = "Placed on the House Calendar, Calendar No. 9.";
- * };
- * vote = {
- * date = 1234459620;
- * datetime = "2009-02-12T13:27:00-05:00";
- * how = roll;
- * reference = {
- * label = text;
- * ref = "CR H1255";
- * };
- * result = pass;
- * roll = 63;
- * text = "On agreeing to the resolution Agreed to by the Yeas and Nays: 248 - 174 (Roll no. 63).";
- * type = vote;
- * where = h;
- * };
- * };
- * amendments = {
- * };
- * committees = {
- * committee = {
- * activity = "Origin, Reporting";
- * name = "House Rules";
- * subcommittee = "";
- * };
- * };
- * cosponsors = {
- * };
- * introduced = {
- * date = 1234328400;
- * datetime = "2009-02-11";
- * };
- * number = 157;
- * relatedbills = {
- * bill = {
- * number = 10;
- * relation = unknown;
- * session = 111;
- * type = hr;
- * };
- * };
- * session = 111;
- * sponsor = {
- * id = 412192;
- * };
- * status = {
- * vote = {
- * date = 1234459620;
- * datetime = "2009-02-12T13:27:00-05:00";
- * how = roll;
- * result = pass;
- * roll = 63;
- * where = h;
- * };
- * };
- * subjects = {
- * };
- * summary = {
- * };
- * titles = {
- * title = {
- * as = introduced;
- * content = "Providing for consideration of motions to suspend the rules, and for other purposes.";
- * type = official;
- * };
- * };
- * type = hr;
- * updated = "2009-02-14T16:25:06-05:00";
- * };
- * }
- * @endcode
- */
-- (NSMutableDictionary *)toDictionary;
-@end
View
62 Frameworks/HTTPRiot.framework/Versions/A/Headers/AIXMLSerialization.h
@@ -1,62 +0,0 @@
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IPHONE
-
-#import "DDXML.h"
-
-#ifndef NSXMLNode
-#define NSXMLNode DDXMLNode
-#endif
-#ifndef NSXMLElement
-#define NSXMLElement DDXMLElement
-#endif
-#ifndef NSXMLDocument
-#define NSXMLDocument DDXMLDocument
-#endif
-
-#ifndef NSXMLNodeKind
-#define NSXMLInvalidKind DDXMLInvalidKind
-#define NSXMLDocumentKind DDXMLDocumentKind
-#define NSXMLElementKind DDXMLElementKind
-#define NSXMLAttributeKind DDXMLAttributeKind
-#define NSXMLNamespaceKind DDXMLNamespaceKind
-#define NSXMLProcessingInstructionKind DDXMLProcessingInstructionKind
-#define NSXMLCommentKind DDXMLCommentKind
-#define NSXMLTextKind DDXMLTextKind
-#define NSXMLDTDKind DDXMLDTDKind
-#define NSXMLEntityDeclarationKind DDXMLEntityDeclarationKind
-#define NSXMLAttributeDeclarationKind DDXMLAttributeDeclarationKind
-#define NSXMLElementDeclarationKind DDXMLElementDeclarationKind
-#define NSXMLNotationDeclarationKind DDXMLNotationDeclarationKind
-
-#define NSXMLNodeKind DDXMLNodeKind;
-#endif
-
-#ifndef NSXMLNodeOptionsNone
-#define NSXMLNodeOptionsNone DDXMLNodeOptionsNone
-#define NSXMLNodeExpandEmptyElement DDXMLNodeExpandEmptyElement
-#define NSXMLNodeCompactEmptyElement DDXMLNodeCompactEmptyElement
-#define NSXMLNodePrettyPrint DDXMLNodePrettyPrint
-#endif
-
-#ifndef NSXMLDocumentXMLKind
-#define NSXMLDocumentXMLKind DDXMLDocumentXMLKind
-#define NSXMLDocumentXHTMLKind DDXMLDocumentXHTMLKind
-#define NSXMLDocumentHTMLKind DDXMLDocumentHTMLKind
-#define NSXMLDocumentTextKind DDXMLDocumentTextKind
-
-#define NSXMLDocumentContentKind DDXMLDocumentContentKind
-#endif
-
-#ifndef NSXMLDocumentTidyHTML
-#define NSXMLDocumentTidyHTML 1 << 9
-#define NSXMLDocumentTidyXML 1 << 10
-#define NSXMLDocumentValidate 1 << 13
-#define NSXMLDocumentXInclude 1 << 16
-#endif
-
-#endif
-
-
-#import "AIXMLDocumentSerialize.h"
-#import "AIXMLElementSerialize.h"
View
18 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRBase64.h
@@ -1,18 +0,0 @@
-//
-// HRBase64.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 7/2/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-// This was taken Cyrus' Public Domain implementation on the bottom of
-// http://www.cocoadev.com/index.pl?BaseSixtyFour.
-//
-#import <Foundation/Foundation.h>
-
-
-@interface HRBase64 : NSObject {
-
-}
-+ (NSString*) encode:(NSData*)rawBytes;
-@end
View
15 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatJSON.h
@@ -1,15 +0,0 @@
-//
-// HRFormatJSON.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 2/8/09.
-// Copyright 2009 Alternateidea. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "HRFormatterProtocol.h"
-
-@interface HRFormatJSON : NSObject <HRFormatterProtocol> {
-
-}
-
-@end
View
14 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatXML.h
@@ -1,14 +0,0 @@
-//
-// HRFormatXML.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 2/8/09.
-// Copyright 2009 Alternateidea. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "HRFormatterProtocol.h"
-@interface HRFormatXML : NSObject <HRFormatterProtocol> {
-
-}
-
-@end
View
47 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRFormatterProtocol.h
@@ -1,47 +0,0 @@
-/**
- * @file HRFormatterProtocol.h Protocol for the formatters.
- */
-
-//
-// HRFormatterProtocol.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 2/8/09.
-// Copyright 2009 Alternateidea. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-
-/**
- * @protocol HRFormatterProtocol
- *
- * Formatters used in formatting response data
- * Formatters should be able to encode and decode a specific data type.
- */
-@protocol HRFormatterProtocol
-
-/**
- * The file extension. Example: json, xml, plist, n3, etc.
- */
-+ (NSString *)extension;
-
-/**
- * The mime-type represented by this formatter
- */
-+ (NSString *)mimeType;
-
-/**
- * Takes the format and turns it into the appropriate Obj-C data type.
- *
- * @param data Raw data to be decoded.
- * @param error Returns any errors that happened while decoding.
- */
-+ (id)decode:(NSData *)data error:(NSError **)error;
-
-/**
- * Takes an Obj-C data type and turns it into the proper format.
- *
- * @param object The Obj-C object to be encoded by the formatter.
- * @param error Returns any errors that happened while encoding.
- */
-+ (NSString *)encode:(id)object error:(NSError **)error;
-@end
View
67 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRGlobal.h
@@ -1,67 +0,0 @@
-/**
- * @file HRGlobal.h Shared types and constants.
- */
-#import <Foundation/Foundation.h>
-
-/// Key for delgate
-extern NSString *kHRClassAttributesDelegateKey;
-/// Key for base url
-extern NSString *kHRClassAttributesBaseURLKey;
-/// Key for headers
-extern NSString *kHRClassAttributesHeadersKey;
-/// Key for basic auth
-extern NSString *kHRClassAttributesBasicAuthKey;
-/// Key for username
-extern NSString *kHRClassAttributesUsernameKey;
-/// Key for password
-extern NSString *kHRClassAttributesPasswordKey;
-/// Key for format
-extern NSString *kHRClassAttributesFormatKey;
-/// Key for default params
-extern NSString *kHRClassAttributesDefaultParamsKey;
-/// Key for params
-extern NSString *kHRClassAttributesParamsKey;
-/// Key for body
-extern NSString *kHRClassAttributesBodyKey;
-
-
-/**
- * Supported REST methods.
- * @see HRRequestOperation
- */
-typedef enum {
- /// Unknown [NOT USED]
- HRRequestMethodUnknown = -1,
- /// GET
- HRRequestMethodGet,
- /// POST
- HRRequestMethodPost,
- /// PUT
- HRRequestMethodPut,
- /// DELETE
- HRRequestMethodDelete
-} HRRequestMethod;
-
-/**
- Supported formats.
- @see HRRestModel#setFormat
- */
-typedef enum {
- /// Unknown [NOT USED]
- HRDataFormatUnknown = -1,
- /// JSON Format
- HRDataFormatJSON,
- /// XML Format
- HRDataFormatXML
-} HRDataFormat;
-
-/// HTTPRiot's error domain
-#define HTTPRiotErrorDomain @"com.labratrevenge.HTTPRiot.ErrorDomain"
-
-#ifdef DEBUG
-/// Logging Helper
-#define HRLOG NSLog
-#else
-/// Logging Helper
-#define HRLOG
-#endif
View
23 Frameworks/HTTPRiot.framework/Versions/A/Headers/HROperationQueue.h
@@ -1,23 +0,0 @@
-//
-// HROperationQueue.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 7/2/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-
-/**
- * Gives you access to the shared operation queue used to manage all connections.
- */
-@interface HROperationQueue : NSOperationQueue {
-
-}
-
-/**
- * Shared operation queue.
- */
-+ (HROperationQueue *)sharedOperationQueue;
-@end
View
101 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRRequestOperation.h
@@ -1,101 +0,0 @@
-//
-// HRRequestOperation.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 1/30/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "HRGlobal.h"
-#import "HRResponseDelegate.h"
-
-/**
- * The object which all requests are routed through. You shouldn't need to use
- * this class directly, but instead use HRRestModel which wraps the method
- * of this class neatly.
- */
-@interface HRRequestOperation : NSOperation {
- /// HRResponse Delegate
- NSObject <HRResponseDelegate>*_delegate;
-
- /// Connection object
- NSURLConnection *_connection;
-
- /// Response received
- NSURLResponse *_response;
-
- /// Data received from response
- NSMutableData *_responseData;
-
- /// The path or URL to use in REST methods
- NSString *_path;
-
- /// Contains all options used by the request.
- NSDictionary *_options;
-
- /// How long before the request will timeout
- NSTimeInterval _timeout;
-
- /// The request method to use
- HRRequestMethod _requestMethod;
-
- /// The HRFormatter object
- id _formatter;
-
- /// The object passed to all delegate methods
- id _object;
-
- /// Determines whether the operation is finished
- BOOL _isFinished;
-
- /// Determines whether the operation is executing
- BOOL _isExecuting;
-
- /// Determines whether the connection is cancelled
- BOOL _isCancelled;
-}
-
-/// The HRResponseDelegate
-/**
- * The HRResponseDelegate responsible for handling the success and failure of
- * a request.
- */
-@property (nonatomic, readonly, assign) NSObject <HRResponseDelegate>*delegate;
-
-/// The lenght of time in seconds before the request times out.
-/**
- * Sets the length of time in seconds before a request will timeout.
- * This defaults to <tt>30.0</tt>.
- */
-@property (nonatomic, assign) NSTimeInterval timeout;
-
-/// The REST method to use when performing a request
-/**
- * This defaults to HRRequestMethodGet. Valid options are ::HRRequestMethod.
- */
-@property (nonatomic, assign) HRRequestMethod requestMethod;
-
-/// The relative path or url string used in a request
-/**
- If you provide a relative path here, you must set the baseURL option.
- If given a full url this will overide the baseURL option.
- */
-@property (nonatomic, copy) NSString *path;
-
-/// An NSDictionary containing all the options for a request.
-/**
- This needs documented
- */
-@property (nonatomic, retain) NSDictionary *options;
-
-/// The formatter used to decode the response body.
-/**
- Currently, only JSON is supported.
- */
-@property (nonatomic, readonly, retain) id formatter;
-
-/**
- * Returns an HRRequestOperation
- */
-+ (HRRequestOperation *)requestWithMethod:(HRRequestMethod)method path:(NSString*)urlPath options:(NSDictionary*)requestOptions object:(id)obj;
-@end
View
66 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRResponseDelegate.h
@@ -1,66 +0,0 @@
-/**
- * @file HRResponseDelegate.h Protocol for the response delegate methods.
- */
-
-//
-// HRResponseDelegate.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 6/24/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-
-/**
- * @protocol HRResponseDelegate
- *
- * Implementing the HRResponseDelegate protocol allows you to handle requests.
- */
-@protocol HRResponseDelegate <NSObject>
-@optional
-/**
- * Called when the resource was succeffully fetched and encoded
- *
- * @param connection The connection object for the current request
- * @param resource The converted objc representation of the response data returned by the server.
- * @param object Any custom object you passed in while making the request.
- */
-- (void)restConnection:(NSURLConnection *)connection didReturnResource:(id)resource response:(NSHTTPURLResponse *)response object:(id)object;
-
-/**
- * Called when the connection fails in situations where the server is not available, etc.
- *
- * @param connection The connection object for the current request
- * @param error The error returned by the connection.
- * @param object Any custom object you passed in while making the request.
- */
-- (void)restConnection:(NSURLConnection *)connection didFailWithError:(NSError *)error object:(id)object;
-
-/**
- * Called when the connection receieves any type of response
- *
- * @param connection The connection object for the current request
- * @param response The response object returned by the server.
- * @param object Any custom object you passed in while making the request.
- */
-- (void)restConnection:(NSURLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response object:(id)object;
-
-/**
- * Called when the connection receieves a statusCode that isn't a success code.
- *
- * @param connection The connection object for the current request
- * @param error The error returned by the connection.
- * @param response The response object returned by the server.
- * @param object Any custom object you passed in while making the request.
- */
-- (void)restConnection:(NSURLConnection *)connection didReceiveError:(NSError *)error response:(NSHTTPURLResponse *)response object:(id)object;
-
-/**
- * Called when the HRFormatter recieved an error parsing the response data.
- *
- * @param connection The connection object for the current request
- * @param error The parser error returned by the formatter.
- * @param body A string representation of the response body returned by the server.
- * @param object Any custom object you passed in while making the request.
- */
-- (void)restConnection:(NSURLConnection *)connection didReceiveParseError:(NSError *)error responseBody:(NSString *)body object:(id)object;
-@end
View
205 Frameworks/HTTPRiot.framework/Versions/A/Headers/HRRestModel.h
@@ -1,205 +0,0 @@
-//
-// HRRestModel.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 1/28/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-#import <Foundation/Foundation.h>
-#import "HRGlobal.h"
-
-/**
- * This class allows you to easily interact with RESTful resources. Responses are automatically
- * converted to the proper Objective-C type. You can use this class directly or subclass it.
- *
- * Using this class directly means that all requests share the same configuration
- * (including delegate). This works fine for simple situations but when you start dealing
- * with different resource types it's best to subclass HRRestModel, giving each class its
- * own set of configuation options.
- *
- *
- * In the code below all requests originating from <tt>Person</tt> will have an <tt>api_key</tt>
- * default parameter, the same base url, and the same delegate. See HRResponseDelegate for the
- * the delegate methods available to you.
- *
- * @code
- * @implementation Person
- * + (void)initialize {
- * [self setDelegate:self];
- * NSDictionary *params = [NSDictionary dictionaryWithObject:@"1234567" forKey:@"api_key"];
- * [self setBaseURL:[NSURL URLWithString:@"http://localhost:1234/api"]];
- * [self setDefaultParameters:params];
- * }
- *
- * + (void)restConnection:(NSURLConnection *)connection didReturnResource:(id)resource object:(id)object {
- * for(id person in resource) {
- * // do something with a person dictionary
- * }
- * }
- * @end
- *
- * // Would send a request to http://localhost:1234/api/people/1?api_key=1234567
- * [Person getPath:@"/people/1" withOptions:nil object:nil];
- * @endcode
- *
- * <h3>A note on default properties and subclassing</h3>
- * Each subclass has its own set of unique properties and these properties <em>are not</em>
- * inherited by any additional subclasses.
- */
-@interface HRRestModel : NSObject {
-
-}
-
-/**
- * @name Setting default request options
- * Set the default options that can be used in every request made from the model
- * that sets them.
- * @{
- */
-
-/**
- * Returns the HRResponseDelegate
- */
-+ (NSObject *)delegate;
-
-/**
-* Set the HRResponseDelegate
-* @param del The HRResponseDelegate responsible for handling callbacks
-*/
-+ (void)setDelegate:(NSObject *)del;
-
-/**
- * The base url to use in every request
- */
-+ (NSURL *)baseURL;
-
-/**
- * Set the base URL to be used in every request.
- *
- * Instead of providing a URL for every request you can set the base
- * url here. You can also provide a path and port if you wish. This
- * url is prepended to the path argument of the request methods.
- *
- * @param url The base uri used in all request
- */
-+ (void)setBaseURL:(NSURL *)url;
-
-/**
- * Default headers sent with every request
- */
-+ (NSDictionary *)headers;
-
-/**
- * Set the default headers sent with every request.
- * @param hdrs An NSDictionary of headers. For example you can
- * set this up.
- *
- * @code
- * NSDictionary *hdrs = [NSDictionary dictionaryWithObject:@"application/json" forKey:@"Accept"];
- * [self setHeaders:hdrs];
- * @endcode
- */
-+ (void)setHeaders:(NSDictionary *)hdrs;
-
-/**
- * Returns a dictionary containing the username and password used for basic auth.
- */
-+ (NSDictionary *)basicAuth;
-
-/**
- * Set the username and password used in requests that require basic authentication.
- *
- * The username and password privded here will be Base64 encoded and sent as an
- * <code>Authorization</code> header.
- * @param username user name used to authenticate
- * @param password Password used to authenticate
- */
-+ (void)setBasicAuthWithUsername:(NSString *)username password:(NSString *)password;
-
-/**
- * Default params sent with every request.
- */
-+ (NSDictionary *)defaultParams;
-
-/**
- * Set the defaul params sent with every request.
- * If you need to send something with every request this is the perfect way to do it.
- * For GET request, these parameters will be appended to the query string. For
- * POST request these parameters are sent with the body.
- */
-+ (void)setDefaultParams:(NSDictionary *)params;
-
-/**
- * The format used to decode and encode request and responses.
- * Supported formats are JSON and XML.
- */
-+ (HRDataFormat)format;
-
-/**
- * Set the format used to decode and encode request and responses.
- */
-+ (void)setFormat:(HRDataFormat)format;
-//@}
-
-/**
- * @name Sending Requests
- * These methods allow you to send GET, POST, PUT and DELETE requetsts.
- *
- * <h3>Request Options</h3>
- * All requests can take numerous types of options passed as the second argument.
- * @li @b headers <tt>NSDictionary</tt> - The headers to send with the request
- * @li @b params <tt>NSDictionary</tt> - The query or body parameters sent with the request.
- * @li @b body <tt>NSData</tt>, <tt>NSString</tt> or <tt>NSDictionary</tt> - This option is used only during POST and PUT
- * requests. This option is eventually transformed into an NSData object before it is sent.
- * If you supply the body as an NSDictionary it's turned to a query string &foo=bar&baz=boo and
- * then it's encoded as an NSData object. If you supply an NSString, it's encoded as an NSData
- * object and sent.
- * @{
- */
-
-/**
- * Send a GET request
- * @param path The path to get. If you haven't setup the baseURL option you'll need to provide a
- * full url.
- * @param options The options for this request.
- * @param object An object to be passed to the delegate methods
- *
- */
-+ (NSOperation *)getPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
-
-/**
- * Send a POST request
- * @param path The path to POST to. If you haven't setup the baseURL option you'll need to provide a
- * full url.
- * @param options The options for this request.
- * @param object An object to be passed to the delegate methods
- *
- * <strong>Note:</strong> If you'd like to post raw data like JSON or XML you'll need to set the <tt>body</tt> option.
- *
- */
-+ (NSOperation *)postPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
-
-/**
- * Send a PUT request
- * @param path The path to PUT to. If you haven't setup the baseURL option you'll need to provide a
- * full url.
- * @param options The options for this request.
- * @param object An object to be passed to the delegate methods
- *
- * @remarks <strong>Note:</strong> All data found in the <tt>body</tt> option will be PUT. Setting the <tt>body</tt>
- * option will cause the <tt>params</tt> option to be ignored.
- *
- */
-+ (NSOperation *)putPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
-
-/**
- * Send a DELETE request
- * @param path The path to DELETE. If you haven't setup the baseURL option you'll need to provide a
- * full url.
- * @param options The options for this request.
- * @param object An object to be passed to the delegate methods
- *
- */
-+ (NSOperation *)deletePath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
-//@}
-@end
View
127 Frameworks/HTTPRiot.framework/Versions/A/Headers/HTTPRiot.h
@@ -1,127 +0,0 @@
-/*
- * Copyright (c) 2009 Justin Palmer <encytemedia@gmail.com>, All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither the name of the author nor the names of its contributors may be used
- * to endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
-@mainpage HTTPRiot - A simple HTTP REST Library
-
-@image html httpriot.png
-
-@li <a href="http://labratrevenge.com/httpriot">HTTPRiot homepage</a>
-@li <a href="https://github.com/Caged/httpriot/tree/master">Source Code</a>
-@li <a href="http://twitter.com/Caged">Twitter</a>
-
-HTTPRiot is a simple REST library designed to make interacting with REST services
-much easier. It supports GET, POST, PUSH and DELETE requests and HTTP Basic Authentication.
-HTTPRiot was inspired by John Nunemaker's excellent
-<a href="http://github.com/jnunemaker/httparty/tree/master">httparty</a> Ruby library.
-
-<div id="guides">
- <span class="ttl">Related Guides</span>
- <ul>
- <li>@subpage iphone-setup</li>
- <li>@subpage cocoa-setup</li>
- </ul>
-</div>
-
-<h3>Some Examples</h3>
-
-<h4>Send a GET request</h4>
-@code
-[HRRestModel getPath:@"/person.json" withOptions:nil object:nil];
-@endcode
-
-<h4>Send a POST request with JSON body data</h4>
-@code
-NSDictionary *opts = [NSDictionary dictionaroyWithObject:[person JSONRepresentation] forKey:@"body"];
-[HRRestModel postPath:@"/person" withOptions:opts object:nil];
-@endcode
-
-<h4>Send a PUT request</h4>
-@code
-NSDictionary *opts = [NSDictionary dictionaroyWithObject:[updatedPerson JSONRepresentation] forKey:@"body"];
-[HRRestModel putPath:@"/person" withOptions:opts object:nil];
-@endcode
-
-<h4>Send a DELETE request</h4>
-@code
-[HRRestModel deletePath:@"/person/1" withOptions:nil object:nil];
-@endcode
-
-<h3>Subclassing HRRestModel</h3>
-Although you can use HTTPRiot straight out of the box by itself, this approach has some pitfals.
-Every request will share the same configuation options. By subclassing HRRestModel you can have
-per-class configuation options meaning that all requests generating from your subclass share a
-local set of configuation options and will not affect other requests not originating from your subclass.
-
-@include Tweet.m
-
-@page iphone-setup Using the HTTPRiot Framework in your iPhone Applications
-
-HTTPRiot comes with a simple SDK package that makes it very easy to get up and running quickly
-on the iphone. You'll need to put this SDK package somewhere where it won't get deleted and you
-can share it with all your iPhone projects.
-
-<p><strong>NOTE: Make sure you select "All Configurations" in the Build tab before changing any settings.</strong></p>
-
--# Move the httpriot-* directory to <strong><tt>~/Library/SDKs</tt></strong>. You might need to create this directory.
- It's not mandatory that it lives in this location, but it's a good idea that you put it somewhere
- where it can be shared.
--# Create a new project or open an existing project in XCode. Select your application's target and
- press<strong class="key"> ⌘i</strong> to bring up the properties window. Set the <strong><tt>Additional SDKs</tt></strong>
- property to <strong><tt>~/Library/SDKs/httpriot-0.4.0/\$(PLATFORM_NAME)\$(IPHONEOS_DEPLOYMENT_TARGET).sdk</tt></strong>
- @image html additional-sdks.png
--# Set the <strong><tt>Other Linker Flags</tt></strong> to <tt>-lhttpriot -lxml2 -ObjC -all_load</tt></strong>
- @image html other-linker-flags.png
--# Set <strong><tt>Header Search Paths</tt></strong> to <strong><tt>/usr/include/libxml2/**</tt></strong>
--# Use <strong><tt>\#include <HTTPRiot/HTTPRiot.h></tt></strong> in one of your application's files.
- That's it! Now you're ready to use HTTPRiot!
-
-@page cocoa-setup Using the HTTPRiot Framework in your Desktop Applications
-
--# Right click Other Frameworks in XCode and select <tt>Add &rarr; Existing Frameworks</tt>. Select
- the <strong><tt>HTTPRiot.framework</tt></strong> and press <tt>Add</tt>. @image html httpriot-framework.png
--# Include the framework <strong><tt>\#include <HTTPRiot/HTTPRiot.h></tt></strong> in your project. That's it!
-
-<h3>Embedding HTTPRiot.framework in your application</h3>
-If you want to distribute HTTPRiot.framework with your application you'll need to do another step.
-
--# Right click your target name and select <tt>"Add > New Build Phase > New Copy Files Build Phase"</tt>.
- Set <tt>Frameworks</tt> as the destination path in the popup. @image html copy-files.png
--# Drag the HTTPRiot.framework file to this new phase.
-*/
-
-#import <Foundation/Foundation.h>
-
-#import "AIXMLSerialization.h"
-#import "JSON.h"
-
-#import "HROperationQueue.h"
-#import "HRRequestOperation.h"
-#import "HRRestModel.h"
-#import "HRResponseDelegate.h"
View
50 Frameworks/HTTPRiot.framework/Versions/A/Headers/JSON.h
@@ -1,50 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/**
- @mainpage A strict JSON parser and generator for Objective-C
-
- JSON (JavaScript Object Notation) is a lightweight data-interchange
- format. This framework provides two apis for parsing and generating
- JSON. One standard object-based and a higher level api consisting of
- categories added to existing Objective-C classes.
-
- Learn more on the http://code.google.com/p/json-framework project site.
-
- This framework does its best to be as strict as possible, both in what it
- accepts and what it generates. For example, it does not support trailing commas
- in arrays or objects. Nor does it support embedded comments, or
- anything else not in the JSON specification. This is considered a feature.
-
-*/
-
-#import "SBJSON.h"
-#import "NSObject+SBJSON.h"
-#import "NSString+SBJSON.h"
-
View
6 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSDictionary+ParamUtils.h
@@ -1,6 +0,0 @@
-#import <Foundation/Foundation.h>
-
-@interface NSDictionary (ParamUtils)
-- (NSString*) toQueryString;
-@end
-
View
15 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSObject+InvocationUtils.h
@@ -1,15 +0,0 @@
-//
-// NSObject+InvocationUtils.h
-// HTTPRiot
-//
-// Created by Justin Palmer on 6/25/09.
-// Copyright 2009 LabratRevenge LLC.. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-
-@interface NSObject (InvocationUtils)
-- (void)performSelectorOnMainThread:(SEL)selector withObjects:(id)obj1, ...;
-- (void)performSelectorOnMainThread:(SEL)selector withObjectArray:(NSArray *)objects;
-@end
View
68 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSObject+SBJSON.h
@@ -1,68 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-
-
-/**
- @brief Adds JSON generation to Foundation classes
-
- This is a category on NSObject that adds methods for returning JSON representations
- of standard objects to the objects themselves. This means you can call the
- -JSONRepresentation method on an NSArray object and it'll do what you want.
- */
-@interface NSObject (NSObject_SBJSON)
-
-/**
- @brief Returns a string containing the receiver encoded as a JSON fragment.
-
- This method is added as a category on NSObject but is only actually
- supported for the following objects:
- @li NSDictionary
- @li NSArray
- @li NSString
- @li NSNumber (also used for booleans)
- @li NSNull
-
- @deprecated Given we bill ourselves as a "strict" JSON library, this method should be removed.
- */
-- (NSString *)JSONFragment;
-
-/**
- @brief Returns a string containing the receiver encoded in JSON.
-
- This method is added as a category on NSObject but is only actually
- supported for the following objects:
- @li NSDictionary
- @li NSArray
- */
-- (NSString *)JSONRepresentation;
-
-@end
-
View
5 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSString+EscapingUtils.h
@@ -1,5 +0,0 @@
-#import <Foundation/Foundation.h>
-
-@interface NSString (EscapingUtils)
-- (NSString *) stringByPreparingForURL;
-@end
View
58 Frameworks/HTTPRiot.framework/Versions/A/Headers/NSString+SBJSON.h
@@ -1,58 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-
-/**
- @brief Adds JSON parsing methods to NSString
-
-This is a category on NSString that adds methods for parsing the target string.
-*/
-@interface NSString (NSString_SBJSON)
-
-
-/**
- @brief Returns the object represented in the receiver, or nil on error.
-
- Returns a a scalar object represented by the string's JSON fragment representation.
-
- @deprecated Given we bill ourselves as a "strict" JSON library, this method should be removed.
- */
-- (id)JSONFragmentValue;
-
-/**
- @brief Returns the NSDictionary or NSArray represented by the current string's JSON representation.
-
- Returns the dictionary or array represented in the receiver, or nil on error.
-
- Returns the NSDictionary or NSArray represented by the current string's JSON representation.
- */
-- (id)JSONValue;
-
-@end
View
75 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJSON.h
@@ -1,75 +0,0 @@
-/*
- Copyright (C) 2007-2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-#import "SBJsonParser.h"
-#import "SBJsonWriter.h"
-
-/**
- @brief Facade for SBJsonWriter/SBJsonParser.
-
- Requests are forwarded to instances of SBJsonWriter and SBJsonParser.
- */
-@interface SBJSON : SBJsonBase <SBJsonParser, SBJsonWriter> {
-
-@private
- SBJsonParser *jsonParser;
- SBJsonWriter *jsonWriter;
-}
-
-
-/// Return the fragment represented by the given string
-- (id)fragmentWithString:(NSString*)jsonrep
- error:(NSError**)error;
-
-/// Return the object represented by the given string
-- (id)objectWithString:(NSString*)jsonrep
- error:(NSError**)error;
-
-/// Parse the string and return the represented object (or scalar)
-- (id)objectWithString:(id)value
- allowScalar:(BOOL)x
- error:(NSError**)error;
-
-
-/// Return JSON representation of an array or dictionary
-- (NSString*)stringWithObject:(id)value
- error:(NSError**)error;
-
-/// Return JSON representation of any legal JSON value
-- (NSString*)stringWithFragment:(id)value
- error:(NSError**)error;
-
-/// Return JSON representation (or fragment) for the given object
-- (NSString*)stringWithObject:(id)value
- allowScalar:(BOOL)x
- error:(NSError**)error;
-
-
-@end
View
86 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonBase.h
@@ -1,86 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-
-extern NSString * SBJSONErrorDomain;
-
-
-enum {
- EUNSUPPORTED = 1,
- EPARSENUM,
- EPARSE,
- EFRAGMENT,
- ECTRL,
- EUNICODE,
- EDEPTH,
- EESCAPE,
- ETRAILCOMMA,
- ETRAILGARBAGE,
- EEOF,
- EINPUT
-};
-
-/**
- @brief Common base class for parsing & writing.
-
- This class contains the common error-handling code and option between the parser/writer.
- */
-@interface SBJsonBase : NSObject {
- NSMutableArray *errorTrace;
-
-@protected
- NSUInteger depth, maxDepth;
-}
-
-/**
- @brief The maximum recursing depth.
-
- Defaults to 512. If the input is nested deeper than this the input will be deemed to be
- malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
- turn off this security feature by setting the maxDepth value to 0.
- */
-@property NSUInteger maxDepth;
-
-/**
- @brief Return an error trace, or nil if there was no errors.
-
- Note that this method returns the trace of the last method that failed.
- You need to check the return value of the call you're making to figure out
- if the call actually failed, before you know call this method.
- */
- @property(copy,readonly) NSArray* errorTrace;
-
-/// @internal for use in subclasses to add errors to the stack trace
-- (void)addErrorWithCode:(NSUInteger)code description:(NSString*)str;
-
-/// @internal for use in subclasess to clear the error before a new parsing attempt
-- (void)clearErrorTrace;
-
-@end
View
87 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonParser.h
@@ -1,87 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-#import "SBJsonBase.h"
-
-/**
- @brief Options for the parser class.
-
- This exists so the SBJSON facade can implement the options in the parser without having to re-declare them.
- */
-@protocol SBJsonParser
-
-/**
- @brief Return the object represented by the given string.
-
- Returns the object represented by the passed-in string or nil on error. The returned object can be
- a string, number, boolean, null, array or dictionary.
-
- @param repr the json string to parse
- */
-- (id)objectWithString:(NSString *)repr;
-
-@end
-
-
-/**
- @brief The JSON parser class.
-
- JSON is mapped to Objective-C types in the following way:
-
- @li Null -> NSNull
- @li String -> NSMutableString
- @li Array -> NSMutableArray
- @li Object -> NSMutableDictionary
- @li Boolean -> NSNumber (initialised with -initWithBool:)
- @li Number -> NSDecimalNumber
-
- Since Objective-C doesn't have a dedicated class for boolean values, these turns into NSNumber
- instances. These are initialised with the -initWithBool: method, and
- round-trip back to JSON properly. (They won't silently suddenly become 0 or 1; they'll be
- represented as 'true' and 'false' again.)
-
- JSON numbers turn into NSDecimalNumber instances,
- as we can thus avoid any loss of precision. (JSON allows ridiculously large numbers.)
-
- */
-@interface SBJsonParser : SBJsonBase <SBJsonParser> {
-
-@private
- const char *c;
-}
-
-@end
-
-// don't use - exists for backwards compatibility with 2.1.x only. Will be removed in 2.3.
-@interface SBJsonParser (Private)
-- (id)fragmentWithString:(id)repr;
-@end
-
-
View
129 Frameworks/HTTPRiot.framework/Versions/A/Headers/SBJsonWriter.h
@@ -1,129 +0,0 @@
-/*
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of the author nor the names of its contributors may be used
- to endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-#import "SBJsonBase.h"
-
-/**
- @brief Options for the writer class.
-
- This exists so the SBJSON facade can implement the options in the writer without having to re-declare them.
- */
-@protocol SBJsonWriter
-
-/**
- @brief Whether we are generating human-readable (multiline) JSON.
-
- Set whether or not to generate human-readable JSON. The default is NO, which produces
- JSON without any whitespace. (Except inside strings.) If set to YES, generates human-readable
- JSON with linebreaks after each array value and dictionary key/value pair, indented two
- spaces per nesting level.
- */
-@property BOOL humanReadable;
-
-/**
- @brief Whether or not to sort the dictionary keys in the output.
-
- If this is set to YES, the dictionary keys in the JSON output will be in sorted order.
- (This is useful if you need to compare two structures, for example.) The default is NO.
- */
-@property BOOL sortKeys;
-
-/**
- @brief Return JSON representation (or fragment) for the given object.
-
- Returns a string containing JSON representation of the passed in value, or nil on error.
- If nil is returned and @p error is not NULL, @p *error can be interrogated to find the cause of the error.
-
- @param value any instance that can be represented as a JSON fragment
-
- */
-- (NSString*)stringWithObject:(id)value;
-
-@end
-
-
-/**
- @brief The JSON writer class.
-
- Objective-C types are mapped to JSON types in the following way:
-
- @li NSNull -> Null
- @li NSString -> String
- @li NSArray -> Array
- @li NSDictionary -> Object
- @li NSNumber (-initWithBool:) -> Boolean
- @li NSNumber -> Number
-
- In JSON the keys of an object must be strings. NSDictionary keys need
- not be, but attempting to convert an NSDictionary with non-string keys
- into JSON will throw an exception.
-
- NSNumber instances created with the +initWithBool: method are
- converted into the JSON boolean "true" and "false" values, and vice
- versa. Any other NSNumber instances are converted to a JSON number the
- way you would expect.
-
- */
-@interface SBJsonWriter : SBJsonBase <SBJsonWriter> {
-
-@private
- BOOL sortKeys, humanReadable;
-}
-
-@end
-
-// don't use - exists for backwards compatibility. Will be removed in 2.3.
-@interface SBJsonWriter (Private)
-- (NSString*)stringWithFragment:(id)value;
-@end
-
-/**
- @brief Allows generation of JSON for otherwise unsupported classes.
-
- If you have a custom class that you want to create a JSON representation for you can implement
- this method in your class. It should return a representation of your object defined
- in terms of objects that can be translated into JSON. For example, a Person
- object might implement it like this:
-
- @code
- - (id)jsonProxyObject {
- return [NSDictionary dictionaryWithObjectsAndKeys:
- name, @"name",
- phone, @"phone",
- email, @"email",
- nil];
- }
- @endcode
-
- */
-@interface NSObject (SBProxyForJson)
-- (id)proxyForJson;
-@end
-
View
1  Frameworks/HTTPRiot.framework/Versions/A/PrivateHeaders/HTTPRiot_Prefix.pch
@@ -1 +0,0 @@
-#import "HRGlobal.h"
View
22 Frameworks/HTTPRiot.framework/Versions/A/Resources/Info.plist
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>HTTPRiot</string>
- <key>CFBundleIdentifier</key>
- <string>com.labratrevenge.HTTPRiot</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>HTTPRiot</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.6.0</string>
-</dict>
-</plist>
View
1  Frameworks/HTTPRiot.framework/Versions/Current
1  httpriot
@@ -0,0 +1 @@
+Subproject commit 807e0b06225d10d9d7cc2a54bbb3f6ff83d268ed
View
BIN  menu_icon_alt.png
Deleted file not rendered
Please sign in to comment.
Something went wrong with that request. Please try again.