Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds a sample app.

  • Loading branch information...
commit ad7715d02d9ca68b50674f111c00d50a8a670ca9 1 parent ed75246
@zonble authored
View
3  .gitignore
@@ -6,4 +6,5 @@ build
.DS_Store
CommitVersion.xcconfig
dsa_priv.pem
-*PlurkAPI.h*
+*PlurkAPI.h*
+*PlurkAPIKey.h*
View
2  Sample/SimplePlurkClient/English.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
5,413 Sample/SimplePlurkClient/English.lproj/MainMenu.xib
5,413 additions, 0 deletions not shown
View
32 Sample/SimplePlurkClient/SimplePlurkClient-Info.plist
@@ -0,0 +1,32 @@
+<?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>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>LSMinimumSystemVersion</key>
+ <string>${MACOSX_DEPLOYMENT_TARGET}</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
View
382 Sample/SimplePlurkClient/SimplePlurkClient.xcodeproj/project.pbxproj
@@ -0,0 +1,382 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 45;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58140DA1D0A300B32029 /* MainMenu.xib */; };
+ 256AC3DA0F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 256AC3D90F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.m */; };
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
+ 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
+ D4FF9EA810D0060000D10A53 /* ObjectivePlurk.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EA510D0060000D10A53 /* ObjectivePlurk.m */; };
+ D4FF9EA910D0060000D10A53 /* ObjectivePlurk+PrivateMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EA710D0060000D10A53 /* ObjectivePlurk+PrivateMethods.m */; };
+ D4FF9EB210D0061600D10A53 /* LFHTTPRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EAC10D0061600D10A53 /* LFHTTPRequest.m */; };
+ D4FF9EB310D0061600D10A53 /* LFSiteReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EAE10D0061600D10A53 /* LFSiteReachability.m */; };
+ D4FF9EB410D0061600D10A53 /* NSData+LFHTTPFormExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EB110D0061600D10A53 /* NSData+LFHTTPFormExtensions.m */; };
+ D4FF9EC210D0062A00D10A53 /* BSJSONEncoder.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EB910D0062A00D10A53 /* BSJSONEncoder.m */; };
+ D4FF9EC310D0062A00D10A53 /* NSArray+BSJSONAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EBB10D0062A00D10A53 /* NSArray+BSJSONAdditions.m */; };
+ D4FF9EC410D0062A00D10A53 /* NSDictionary+BSJSONAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EBD10D0062A00D10A53 /* NSDictionary+BSJSONAdditions.m */; };
+ D4FF9EC510D0062A00D10A53 /* NSScanner+BSJSONAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EBF10D0062A00D10A53 /* NSScanner+BSJSONAdditions.m */; };
+ D4FF9EC610D0062A00D10A53 /* NSString+BSJSONAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = D4FF9EC110D0062A00D10A53 /* NSString+BSJSONAdditions.m */; };
+ D4FF9ECD10D0066F00D10A53 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4FF9ECC10D0066F00D10A53 /* SystemConfiguration.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
+ 1DDD58150DA1D0A300B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ 256AC3D80F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimplePlurkClientAppDelegate.h; sourceTree = "<group>"; };
+ 256AC3D90F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimplePlurkClientAppDelegate.m; sourceTree = "<group>"; };
+ 256AC3F00F4B6AF500CF3369 /* SimplePlurkClient_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimplePlurkClient_Prefix.pch; sourceTree = "<group>"; };
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 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>"; };
+ 8D1107310486CEB800E47090 /* SimplePlurkClient-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "SimplePlurkClient-Info.plist"; sourceTree = "<group>"; };
+ 8D1107320486CEB800E47090 /* SimplePlurkClient.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimplePlurkClient.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ D4FF9EA410D0060000D10A53 /* ObjectivePlurk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ObjectivePlurk.h; path = ../../ObjectivePlurk/ObjectivePlurk.h; sourceTree = SOURCE_ROOT; };
+ D4FF9EA510D0060000D10A53 /* ObjectivePlurk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ObjectivePlurk.m; path = ../../ObjectivePlurk/ObjectivePlurk.m; sourceTree = SOURCE_ROOT; };
+ D4FF9EA610D0060000D10A53 /* ObjectivePlurk+PrivateMethods.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ObjectivePlurk+PrivateMethods.h"; path = "../../ObjectivePlurk/ObjectivePlurk+PrivateMethods.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EA710D0060000D10A53 /* ObjectivePlurk+PrivateMethods.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "ObjectivePlurk+PrivateMethods.m"; path = "../../ObjectivePlurk/ObjectivePlurk+PrivateMethods.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9EAB10D0061600D10A53 /* LFHTTPRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LFHTTPRequest.h; path = ../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/LFHTTPRequest.h; sourceTree = SOURCE_ROOT; };
+ D4FF9EAC10D0061600D10A53 /* LFHTTPRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LFHTTPRequest.m; path = ../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/LFHTTPRequest.m; sourceTree = SOURCE_ROOT; };
+ D4FF9EAD10D0061600D10A53 /* LFSiteReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LFSiteReachability.h; path = ../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/LFSiteReachability.h; sourceTree = SOURCE_ROOT; };
+ D4FF9EAE10D0061600D10A53 /* LFSiteReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LFSiteReachability.m; path = ../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/LFSiteReachability.m; sourceTree = SOURCE_ROOT; };
+ D4FF9EAF10D0061600D10A53 /* LFWebAPIKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LFWebAPIKit.h; path = ../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/LFWebAPIKit.h; sourceTree = SOURCE_ROOT; };
+ D4FF9EB010D0061600D10A53 /* NSData+LFHTTPFormExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSData+LFHTTPFormExtensions.h"; path = "../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/NSData+LFHTTPFormExtensions.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EB110D0061600D10A53 /* NSData+LFHTTPFormExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSData+LFHTTPFormExtensions.m"; path = "../../ObjectivePlurk/ExternalLibraries/LFWebAPIKit/NSData+LFHTTPFormExtensions.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9EB810D0062A00D10A53 /* BSJSONEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BSJSONEncoder.h; path = ../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/BSJSONEncoder.h; sourceTree = SOURCE_ROOT; };
+ D4FF9EB910D0062A00D10A53 /* BSJSONEncoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BSJSONEncoder.m; path = ../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/BSJSONEncoder.m; sourceTree = SOURCE_ROOT; };
+ D4FF9EBA10D0062A00D10A53 /* NSArray+BSJSONAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSArray+BSJSONAdditions.h"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSArray+BSJSONAdditions.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EBB10D0062A00D10A53 /* NSArray+BSJSONAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSArray+BSJSONAdditions.m"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSArray+BSJSONAdditions.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9EBC10D0062A00D10A53 /* NSDictionary+BSJSONAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+BSJSONAdditions.h"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSDictionary+BSJSONAdditions.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EBD10D0062A00D10A53 /* NSDictionary+BSJSONAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSDictionary+BSJSONAdditions.m"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSDictionary+BSJSONAdditions.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9EBE10D0062A00D10A53 /* NSScanner+BSJSONAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSScanner+BSJSONAdditions.h"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSScanner+BSJSONAdditions.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EBF10D0062A00D10A53 /* NSScanner+BSJSONAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSScanner+BSJSONAdditions.m"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSScanner+BSJSONAdditions.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9EC010D0062A00D10A53 /* NSString+BSJSONAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSString+BSJSONAdditions.h"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSString+BSJSONAdditions.h"; sourceTree = SOURCE_ROOT; };
+ D4FF9EC110D0062A00D10A53 /* NSString+BSJSONAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSString+BSJSONAdditions.m"; path = "../../ObjectivePlurk/ExternalLibraries/bsjsonadditions/NSString+BSJSONAdditions.m"; sourceTree = SOURCE_ROOT; };
+ D4FF9ECC10D0066F00D10A53 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
+ D4FF9EF910D00AC500D10A53 /* PlurkAPIKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PlurkAPIKey.h; path = ../../ObjectivePlurk/PlurkAPIKey.h; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 8D11072E0486CEB800E47090 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
+ D4FF9ECD10D0066F00D10A53 /* SystemConfiguration.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9EF910D00AC500D10A53 /* PlurkAPIKey.h */,
+ 256AC3D80F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.h */,
+ 256AC3D90F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.m */,
+ );
+ name = Classes;
+ sourceTree = "<group>";
+ };
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9ECC10D0066F00D10A53 /* SystemConfiguration.framework */,
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
+ );
+ name = "Linked Frameworks";
+ sourceTree = "<group>";
+ };
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */,
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107320486CEB800E47090 /* SimplePlurkClient.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 29B97314FDCFA39411CA2CEA /* SimplePlurkClient */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9E9F10D005CD00D10A53 /* API */,
+ 080E96DDFE201D6D7F000001 /* Classes */,
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
+ 29B97317FDCFA39411CA2CEA /* Resources */,
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
+ 19C28FACFE9D520D11CA2CBB /* Products */,
+ );
+ name = SimplePlurkClient;
+ sourceTree = "<group>";
+ };
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 256AC3F00F4B6AF500CF3369 /* SimplePlurkClient_Prefix.pch */,
+ 29B97316FDCFA39411CA2CEA /* main.m */,
+ );
+ name = "Other Sources";
+ sourceTree = "<group>";
+ };
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107310486CEB800E47090 /* SimplePlurkClient-Info.plist */,
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
+ 1DDD58140DA1D0A300B32029 /* MainMenu.xib */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ D4FF9E9F10D005CD00D10A53 /* API */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9EB510D0061C00D10A53 /* bsjsonadditions */,
+ D4FF9EAA10D0060200D10A53 /* LFWebAPIKit */,
+ D4FF9EA010D005D100D10A53 /* ObjectivePlurk */,
+ );
+ name = API;
+ sourceTree = "<group>";
+ };
+ D4FF9EA010D005D100D10A53 /* ObjectivePlurk */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9EA410D0060000D10A53 /* ObjectivePlurk.h */,
+ D4FF9EA510D0060000D10A53 /* ObjectivePlurk.m */,
+ D4FF9EA610D0060000D10A53 /* ObjectivePlurk+PrivateMethods.h */,
+ D4FF9EA710D0060000D10A53 /* ObjectivePlurk+PrivateMethods.m */,
+ );
+ name = ObjectivePlurk;
+ sourceTree = "<group>";
+ };
+ D4FF9EAA10D0060200D10A53 /* LFWebAPIKit */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9EAB10D0061600D10A53 /* LFHTTPRequest.h */,
+ D4FF9EAC10D0061600D10A53 /* LFHTTPRequest.m */,
+ D4FF9EAD10D0061600D10A53 /* LFSiteReachability.h */,
+ D4FF9EAE10D0061600D10A53 /* LFSiteReachability.m */,
+ D4FF9EAF10D0061600D10A53 /* LFWebAPIKit.h */,
+ D4FF9EB010D0061600D10A53 /* NSData+LFHTTPFormExtensions.h */,
+ D4FF9EB110D0061600D10A53 /* NSData+LFHTTPFormExtensions.m */,
+ );
+ name = LFWebAPIKit;
+ sourceTree = "<group>";
+ };
+ D4FF9EB510D0061C00D10A53 /* bsjsonadditions */ = {
+ isa = PBXGroup;
+ children = (
+ D4FF9EB810D0062A00D10A53 /* BSJSONEncoder.h */,
+ D4FF9EB910D0062A00D10A53 /* BSJSONEncoder.m */,
+ D4FF9EBA10D0062A00D10A53 /* NSArray+BSJSONAdditions.h */,
+ D4FF9EBB10D0062A00D10A53 /* NSArray+BSJSONAdditions.m */,
+ D4FF9EBC10D0062A00D10A53 /* NSDictionary+BSJSONAdditions.h */,
+ D4FF9EBD10D0062A00D10A53 /* NSDictionary+BSJSONAdditions.m */,
+ D4FF9EBE10D0062A00D10A53 /* NSScanner+BSJSONAdditions.h */,
+ D4FF9EBF10D0062A00D10A53 /* NSScanner+BSJSONAdditions.m */,
+ D4FF9EC010D0062A00D10A53 /* NSString+BSJSONAdditions.h */,
+ D4FF9EC110D0062A00D10A53 /* NSString+BSJSONAdditions.m */,
+ );
+ name = bsjsonadditions;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 8D1107260486CEB800E47090 /* SimplePlurkClient */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "SimplePlurkClient" */;
+ buildPhases = (
+ 8D1107290486CEB800E47090 /* Resources */,
+ 8D11072C0486CEB800E47090 /* Sources */,
+ 8D11072E0486CEB800E47090 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = SimplePlurkClient;
+ productInstallPath = "$(HOME)/Applications";
+ productName = SimplePlurkClient;
+ productReference = 8D1107320486CEB800E47090 /* SimplePlurkClient.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SimplePlurkClient" */;
+ compatibilityVersion = "Xcode 3.1";
+ hasScannedForEncodings = 1;
+ mainGroup = 29B97314FDCFA39411CA2CEA /* SimplePlurkClient */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 8D1107260486CEB800E47090 /* SimplePlurkClient */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 8D1107290486CEB800E47090 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
+ 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 8D11072C0486CEB800E47090 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072D0486CEB800E47090 /* main.m in Sources */,
+ 256AC3DA0F4B6AC300CF3369 /* SimplePlurkClientAppDelegate.m in Sources */,
+ D4FF9EA810D0060000D10A53 /* ObjectivePlurk.m in Sources */,
+ D4FF9EA910D0060000D10A53 /* ObjectivePlurk+PrivateMethods.m in Sources */,
+ D4FF9EB210D0061600D10A53 /* LFHTTPRequest.m in Sources */,
+ D4FF9EB310D0061600D10A53 /* LFSiteReachability.m in Sources */,
+ D4FF9EB410D0061600D10A53 /* NSData+LFHTTPFormExtensions.m in Sources */,
+ D4FF9EC210D0062A00D10A53 /* BSJSONEncoder.m in Sources */,
+ D4FF9EC310D0062A00D10A53 /* NSArray+BSJSONAdditions.m in Sources */,
+ D4FF9EC410D0062A00D10A53 /* NSDictionary+BSJSONAdditions.m in Sources */,
+ D4FF9EC510D0062A00D10A53 /* NSScanner+BSJSONAdditions.m in Sources */,
+ D4FF9EC610D0062A00D10A53 /* NSString+BSJSONAdditions.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 089C165DFE840E0CC02AAC07 /* English */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 1DDD58140DA1D0A300B32029 /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 1DDD58150DA1D0A300B32029 /* English */,
+ );
+ name = MainMenu.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ C01FCF4B08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = SimplePlurkClient_Prefix.pch;
+ INFOPLIST_FILE = "SimplePlurkClient-Info.plist";
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = SimplePlurkClient;
+ };
+ name = Debug;
+ };
+ C01FCF4C08A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_MODEL_TUNING = G5;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = SimplePlurkClient_Prefix.pch;
+ INFOPLIST_FILE = "SimplePlurkClient-Info.plist";
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = SimplePlurkClient;
+ };
+ name = Release;
+ };
+ C01FCF4F08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ PREBINDING = NO;
+ SDKROOT = macosx10.6;
+ };
+ name = Debug;
+ };
+ C01FCF5008A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ PREBINDING = NO;
+ SDKROOT = macosx10.6;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "SimplePlurkClient" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4B08A954540054247B /* Debug */,
+ C01FCF4C08A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C01FCF4E08A954540054247B /* Build configuration list for PBXProject "SimplePlurkClient" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4F08A954540054247B /* Debug */,
+ C01FCF5008A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
+}
View
37 Sample/SimplePlurkClient/SimplePlurkClientAppDelegate.h
@@ -0,0 +1,37 @@
+//
+// SimplePlurkClientAppDelegate.h
+// SimplePlurkClient
+//
+// Created by zonble on 12/10/09.
+// Copyright 2009 Lithoglyph Inc.. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "ObjectivePlurk.h"
+#import "PlurkAPIKey.h"
+
+@interface SimplePlurkClientAppDelegate : NSObject <NSApplicationDelegate>
+{
+ NSWindow *window;
+ IBOutlet NSWindow *loginWindow;
+ IBOutlet NSButton *loginButton;
+ IBOutlet NSButton *cancelLoginButton;
+ IBOutlet NSTextField *loginNameField;
+ IBOutlet NSTextField *passwordField;
+ IBOutlet NSProgressIndicator *loginProgressIndicator;
+
+ IBOutlet NSArrayController *plurkArrayController;
+
+ NSMutableString *loginName;
+ NSMutableString *password;
+}
+
+- (void)setLoginUIEnabled:(BOOL)flag;
+
+- (IBAction)showLoginSheet:(id)sender;
+- (IBAction)loginAction:(id)sender;
+- (IBAction)cancelLoginAction:(id)sender;
+
+@property (assign) IBOutlet NSWindow *window;
+
+@end
View
113 Sample/SimplePlurkClient/SimplePlurkClientAppDelegate.m
@@ -0,0 +1,113 @@
+//
+// SimplePlurkClientAppDelegate.m
+// SimplePlurkClient
+//
+// Created by zonble on 12/10/09.
+// Copyright 2009 Lithoglyph Inc.. All rights reserved.
+//
+
+#import "SimplePlurkClientAppDelegate.h"
+
+@implementation SimplePlurkClientAppDelegate
+
+- (void) dealloc
+{
+ [loginName release];
+ [password release];
+ [super dealloc];
+}
+
+
+- (id)init
+{
+ self = [super init];
+ if (self != nil) {
+ loginName = [[NSMutableString alloc] init];
+ password = [[NSMutableString alloc] init];
+ }
+ return self;
+}
+
+- (void)awakeFromNib
+{
+ [loginWindow setDefaultButtonCell:[loginButton cell]];
+ [loginProgressIndicator setHidden:YES];
+}
+
+- (void)setLoginUIEnabled:(BOOL)flag
+{
+ [loginButton setEnabled:flag];
+ [passwordField setEnabled:flag];
+ [loginNameField setEditable:flag];
+ [passwordField setEditable:flag];
+}
+
+- (IBAction)showLoginSheet:(id)sender
+{
+ if ([self.window attachedSheet]) {
+ return;
+ }
+ [NSApp beginSheet:loginWindow modalForWindow:self.window modalDelegate:nil didEndSelector:NULL contextInfo:NULL];
+}
+
+- (IBAction)loginAction:(id)sender
+{
+ [self setLoginUIEnabled:NO];
+ [[ObjectivePlurk sharedInstance] loginWithUsername:loginName password:password delegate:self];
+ [loginProgressIndicator setHidden:NO];
+ [loginProgressIndicator startAnimation:self];
+}
+
+- (IBAction)cancelLoginAction:(id)sender
+{
+ [NSApp endSheet:loginWindow];
+ [loginWindow orderOut:self];
+}
+
+
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+{
+ [ObjectivePlurk sharedInstance].APIKey = API_KEY;
+ [self showLoginSheet:self];
+ // Insert code here to initialize your application
+}
+
+- (void)plurk:(ObjectivePlurk *)plurk didLoggedIn:(NSDictionary *)result
+{
+ [loginProgressIndicator setHidden:YES];
+ [loginProgressIndicator stopAnimation:self];
+ [self cancelLoginAction:self];
+ [self setLoginUIEnabled:YES];
+// NSLog(@"result:%@", [result description]);
+
+ NSMutableArray *plurks = [NSMutableArray array];
+ NSArray *inPlurks = [result valueForKey:@"plurks"];
+ NSDictionary *inUsers = [result valueForKey:@"plurks_users"];
+ for (NSDictionary *d in inPlurks) {
+ NSString *ownerID = [d valueForKey:@"owner_id"];
+ if ([ownerID isKindOfClass:[NSNumber class]]) {
+ ownerID = [(NSNumber *)ownerID stringValue];
+ }
+ NSDictionary *userDictionary = [inUsers valueForKey:ownerID];
+ NSMutableDictionary *newDictionary = [NSMutableDictionary dictionaryWithDictionary:d];
+ [newDictionary setValue:[[userDictionary copy] autorelease] forKey:@"userDictionary"];
+ [plurks addObject:newDictionary];
+ }
+// NSLog(@"plurks:%@", [plurks description]);
+ [plurkArrayController setContent:plurks];
+
+}
+- (void)plurk:(ObjectivePlurk *)plurk didFailLoggingIn:(NSError *)error
+{
+ [self setLoginUIEnabled:YES];
+ [loginProgressIndicator setHidden:YES];
+ [loginProgressIndicator stopAnimation:self];
+ NSRunAlertPanelRelativeToWindow([error localizedDescription], @"", @"OK", nil, nil, loginWindow);
+}
+
+
+
+@synthesize window;
+
+
+@end
View
7 Sample/SimplePlurkClient/SimplePlurkClient_Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'SimplePlurkClient' target in the 'SimplePlurkClient' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
View
14 Sample/SimplePlurkClient/main.m
@@ -0,0 +1,14 @@
+//
+// main.m
+// SimplePlurkClient
+//
+// Created by zonble on 12/10/09.
+// Copyright 2009 Lithoglyph Inc.. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+int main(int argc, char *argv[])
+{
+ return NSApplicationMain(argc, (const char **) argv);
+}
Please sign in to comment.
Something went wrong with that request. Please try again.