Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

finished test client for what I need it to do

  • Loading branch information...
commit bdda15a5cc9c110471df165b3ae8bc0d94aa35bb 1 parent 01a7839
Owen Evans authored
View
51 oauth-sample-consumer-cocoa/AccessTokenView.xib
@@ -265,6 +265,26 @@
<int key="NSPeriodicInterval">25</int>
</object>
</object>
+ <object class="NSButton" id="310199765">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{334, 12}, {96, 32}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="746171221">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Next</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="310199765"/>
+ <int key="NSButtonFlags">-2038284033</int>
+ <int key="NSButtonFlags2">129</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
</object>
<string key="NSFrameSize">{434, 338}</string>
<reference key="NSSuperview"/>
@@ -338,6 +358,14 @@
</object>
<int key="connectionID">41</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">goToOAuthRequest:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="310199765"/>
+ </object>
+ <int key="connectionID">44</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -384,6 +412,7 @@
<reference ref="339457297"/>
<reference ref="197016136"/>
<reference ref="670357858"/>
+ <reference ref="310199765"/>
</object>
<reference key="parent" ref="1002"/>
</object>
@@ -541,6 +570,20 @@
<reference key="object" ref="498242188"/>
<reference key="parent" ref="670357858"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">42</int>
+ <reference key="object" ref="310199765"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="746171221"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">43</int>
+ <reference key="object" ref="746171221"/>
+ <reference key="parent" ref="310199765"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -570,6 +613,8 @@
<string>36.IBPluginDependency</string>
<string>39.IBPluginDependency</string>
<string>40.IBPluginDependency</string>
+ <string>42.IBPluginDependency</string>
+ <string>43.IBPluginDependency</string>
<string>6.IBPluginDependency</string>
<string>7.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
@@ -604,6 +649,8 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -626,7 +673,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">41</int>
+ <int key="maxID">44</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -639,6 +686,7 @@
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>getAccessToken:</string>
+ <string>goToOAuthRequest:</string>
<string>goToRequestToken:</string>
<string>validateAccessToken:</string>
</object>
@@ -647,6 +695,7 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
View
1  oauth-sample-consumer-cocoa/AccessTokenViewController.h
@@ -23,4 +23,5 @@
-(void)accessTokenTicket:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data;
-(IBAction) validateAccessToken:(id)sender;
-(IBAction) goToRequestToken:(id)sender;
+-(IBAction) goToOAuthRequest:(id)sender;
@end
View
7 oauth-sample-consumer-cocoa/AccessTokenViewController.m
@@ -77,6 +77,8 @@ -(void) accessTokenTicket: (OAServiceTicket *) ticket
NSLog(@"Got Ticket Key %@ and secret %@",[accessToken key],[accessToken secret]);
[accessTokenKey setStringValue:[accessToken key]];
[accessTokenSecret setStringValue:[accessToken secret]];
+ [parent setSharedValue:[accessToken key] forKey:OACAccessTokenKey];
+ [parent setSharedValue:[accessToken secret] forKey:OACAccessTokenSecret];
}
else
{
@@ -104,4 +106,9 @@ -(IBAction) goToRequestToken:(id)sender
[parent setViewName:@"GetRequestToken"];
}
+-(IBAction) goToOAuthRequest:(id)sender
+{
+ [parent setViewName:@"OAuthRequest"];
+
+}
@end
View
3  oauth-sample-consumer-cocoa/ApplicationController.h
@@ -13,9 +13,12 @@ extern NSString * const OACConsumerKey;
extern NSString * const OACConsumerSecret;
extern NSString * const OACRequestTokenKey;
extern NSString * const OACRequestTokenSecret;
+extern NSString * const OACAccessTokenKey;
+extern NSString * const OACAccessTokenSecret;
extern NSString * const OACRequestTokenUrl;
extern NSString * const OACRequestTokenAuthUrl;
extern NSString * const OACAccessTokenUrl;
+extern NSString * const OACLastRequestUrl;
@interface ApplicationController : NSObject {
PreferenceController *preferenceController;
View
5 oauth-sample-consumer-cocoa/ApplicationController.m
@@ -12,9 +12,12 @@
NSString * const OACConsumerSecret = @"ConsumerSecret";
NSString * const OACRequestTokenKey = @"RequestTokenKey";
NSString * const OACRequestTokenSecret = @"RequestTokenSecret";
+NSString * const OACAccessTokenKey =@"AccessTokenKey";
+NSString * const OACAccessTokenSecret = @"AccessTokenSecret";
NSString * const OACRequestTokenUrl = @"RequestTokenURL";
NSString * const OACRequestTokenAuthUrl = @"RequestTokenAuthURL";
NSString * const OACAccessTokenUrl = @"AccessTokenURL";
+NSString * const OACLastRequestUrl = @"LastRequestURL";
@implementation ApplicationController
@@ -33,7 +36,7 @@ +(void) initialize
[defaultValues setObject:requestTokenAuthUrl forKey:OACRequestTokenAuthUrl];
[defaultValues setObject:consumerKey forKey:OACConsumerKey];
[defaultValues setObject:consumerSecret forKey:OACConsumerSecret];
-
+ [defaultValues setObject:@"" forKey:OACLastRequestUrl];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultValues];
}
View
15 oauth-sample-consumer-cocoa/MyDocument.m
@@ -9,7 +9,7 @@
#import "MyDocument.h"
#import "RequestTokenViewController.h"
#import "AccessTokenViewController.h"
-
+#import "OAuthRequestController.h"
@implementation MyDocument
- (id)init
@@ -25,7 +25,7 @@ - (id)init
[vc1 setManagedObjectContext:[self managedObjectContext]];
[vc1 setParent:self];
[viewControllers addObject:vc1];
-
+ [vc1 release];
ManagingViewController *vc2 = [[AccessTokenViewController alloc]init];
@@ -34,7 +34,11 @@ - (id)init
[viewControllers addObject:vc2];
[vc2 release];
- [vc1 release];
+ ManagingViewController *vc3 = [[OAuthRequestController alloc]init];
+ [vc3 setManagedObjectContext:[self managedObjectContext]];
+ [vc3 setParent:self];
+ [viewControllers addObject:vc3];
+ [vc3 release];
}
return self;
}
@@ -99,6 +103,11 @@ -(void) setViewName:(NSString *) viewName
[self displayViewController:vc];
}
+ if([viewName isEqualToString:@"OAuthRequest"])
+ {
+ ManagingViewController *vc = [viewControllers objectAtIndex:2];
+ [self displayViewController:vc];
+ }
}
-(id) getSharedValue:(NSString *)key
View
446 oauth-sample-consumer-cocoa/OAuthRequest.xib
@@ -0,0 +1,446 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
+ <data>
+ <int key="IBDocument.SystemTarget">1050</int>
+ <string key="IBDocument.SystemVersion">9G55</string>
+ <string key="IBDocument.InterfaceBuilderVersion">677</string>
+ <string key="IBDocument.AppKitVersion">949.43</string>
+ <string key="IBDocument.HIToolboxVersion">353.00</string>
+ <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="1"/>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilderKit</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSCustomObject" id="1001">
+ <string key="NSClassName">OAuthRequestController</string>
+ </object>
+ <object class="NSCustomObject" id="1003">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1004">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSCustomView" id="213535636">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSButton" id="770529246">
+ <reference key="NSNextResponder" ref="213535636"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{140, 300}, {128, 32}}</string>
+ <reference key="NSSuperview" ref="213535636"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="341399385">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Make Request</string>
+ <object class="NSFont" key="NSSupport" id="249985769">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">1.300000e+01</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <reference key="NSControlView" ref="770529246"/>
+ <int key="NSButtonFlags">-2038284033</int>
+ <int key="NSButtonFlags2">129</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSButton" id="766039668">
+ <reference key="NSNextResponder" ref="213535636"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{69, 37}, {96, 32}}</string>
+ <reference key="NSSuperview" ref="213535636"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="930578693">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Back</string>
+ <reference key="NSSupport" ref="249985769"/>
+ <reference key="NSControlView" ref="766039668"/>
+ <int key="NSButtonFlags">-2038284033</int>
+ <int key="NSButtonFlags2">129</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSTextField" id="855328815">
+ <reference key="NSNextResponder" ref="213535636"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{32, 73}, {344, 227}}</string>
+ <reference key="NSSuperview" ref="213535636"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="447285229">
+ <int key="NSCellFlags">-1805517311</int>
+ <int key="NSCellFlags2">272629760</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="249985769"/>
+ <reference key="NSControlView" ref="855328815"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <object class="NSColor" key="NSBackgroundColor" id="75387190">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textBackgroundColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="1023499800">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textColor</string>
+ <object class="NSColor" key="NSColor" id="721562799">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSTextField" id="539828833">
+ <reference key="NSNextResponder" ref="213535636"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{51, 340}, {325, 22}}</string>
+ <reference key="NSSuperview" ref="213535636"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="255887711">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="249985769"/>
+ <reference key="NSControlView" ref="539828833"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="75387190"/>
+ <reference key="NSTextColor" ref="1023499800"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="31200620">
+ <reference key="NSNextResponder" ref="213535636"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{17, 345}, {38, 17}}</string>
+ <reference key="NSSuperview" ref="213535636"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="253236528">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">URL:</string>
+ <reference key="NSSupport" ref="249985769"/>
+ <reference key="NSControlView" ref="31200620"/>
+ <object class="NSColor" key="NSBackgroundColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2OQA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <reference key="NSColor" ref="721562799"/>
+ </object>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrameSize">{396, 369}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSClassName">NSView</string>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="213535636"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">makeOAuthRequest:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="770529246"/>
+ </object>
+ <int key="connectionID">5</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">output</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="855328815"/>
+ </object>
+ <int key="connectionID">10</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">back:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="766039668"/>
+ </object>
+ <int key="connectionID">11</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">oAuthURL</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="539828833"/>
+ </object>
+ <int key="connectionID">16</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <object class="NSArray" key="object" id="1002">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1001"/>
+ <reference key="parent" ref="1002"/>
+ <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1003"/>
+ <reference key="parent" ref="1002"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1004"/>
+ <reference key="parent" ref="1002"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="213535636"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="766039668"/>
+ <reference ref="855328815"/>
+ <reference ref="539828833"/>
+ <reference ref="31200620"/>
+ <reference ref="770529246"/>
+ </object>
+ <reference key="parent" ref="1002"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="770529246"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="341399385"/>
+ </object>
+ <reference key="parent" ref="213535636"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="341399385"/>
+ <reference key="parent" ref="770529246"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="766039668"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="930578693"/>
+ </object>
+ <reference key="parent" ref="213535636"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="930578693"/>
+ <reference key="parent" ref="766039668"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="855328815"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="447285229"/>
+ </object>
+ <reference key="parent" ref="213535636"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">9</int>
+ <reference key="object" ref="447285229"/>
+ <reference key="parent" ref="855328815"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="539828833"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="255887711"/>
+ </object>
+ <reference key="parent" ref="213535636"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">13</int>
+ <reference key="object" ref="255887711"/>
+ <reference key="parent" ref="539828833"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="31200620"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="253236528"/>
+ </object>
+ <reference key="parent" ref="213535636"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="253236528"/>
+ <reference key="parent" ref="31200620"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.IBPluginDependency</string>
+ <string>-2.IBPluginDependency</string>
+ <string>-3.IBPluginDependency</string>
+ <string>1.IBEditorWindowLastContentRect</string>
+ <string>1.IBPluginDependency</string>
+ <string>12.IBPluginDependency</string>
+ <string>13.IBPluginDependency</string>
+ <string>14.IBPluginDependency</string>
+ <string>15.IBPluginDependency</string>
+ <string>2.IBPluginDependency</string>
+ <string>3.IBPluginDependency</string>
+ <string>6.IBPluginDependency</string>
+ <string>7.IBPluginDependency</string>
+ <string>8.IBPluginDependency</string>
+ <string>9.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilderKit</string>
+ <string>com.apple.InterfaceBuilderKit</string>
+ <string>{{558, 378}, {396, 369}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">16</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">ManagingViewController</string>
+ <string key="superclassName">NSViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">parent</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">ManagingViewController.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">OAuthRequestController</string>
+ <string key="superclassName">ManagingViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>back:</string>
+ <string>makeOAuthRequest:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>oAuthURL</string>
+ <string>output</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">OAuthRequestController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.LastKnownRelativeProjectPath">oauth-sample-consumer.xcodeproj</string>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ </data>
+</archive>
View
20 oauth-sample-consumer-cocoa/OAuthRequestController.h
@@ -0,0 +1,20 @@
+//
+// OAuthRequestController.h
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 23/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import <OAuthConsumer/OAuthConsumer.h>
+#import "ManagingViewController.h"
+
+@interface OAuthRequestController : ManagingViewController {
+ IBOutlet NSTextField *oAuthURL;
+ IBOutlet NSTextField *output;
+}
+
+-(IBAction)makeOAuthRequest:(id)sender;
+-(IBAction)back:(id)sender;
+@end
View
90 oauth-sample-consumer-cocoa/OAuthRequestController.m
@@ -0,0 +1,90 @@
+//
+// OAuthRequestController.m
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 23/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import "OAuthRequestController.h"
+#import "ApplicationController.h"
+
+
+@implementation OAuthRequestController
+-(id) init
+{
+ if(![super initWithNibName:@"OAuthRequest" bundle:nil])
+ {
+ return nil;
+ }
+ [self setTitle:@"Make OAuth Request"];
+
+ return self;
+}
+-(void) loadView
+{
+ [super loadView];
+ NSUserDefaults *defaults =[NSUserDefaults standardUserDefaults];
+ [oAuthURL setStringValue:[defaults valueForKey:OACLastRequestUrl]];
+}
+-(IBAction)makeOAuthRequest:(id)sender
+{
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+ NSString *consumerKey = [defaults valueForKey:OACConsumerKey];
+ NSString *consumerSecret = [defaults valueForKey:OACConsumerSecret];
+ [defaults setObject:[oAuthURL stringValue] forKey:OACLastRequestUrl];
+ NSString *accessTokenKey = [parent getSharedValue:OACAccessTokenKey];
+ NSString *accessTokenSecret = [parent getSharedValue:OACAccessTokenSecret];
+ OAConsumer *consumer = [[OAConsumer alloc] initWithKey:consumerKey secret:consumerSecret];
+ OAToken *accessToken = [[OAToken alloc] initWithKey:accessTokenKey secret:accessTokenSecret];
+ NSURL *queryUrl = [NSURL URLWithString:[oAuthURL stringValue]];
+ OAMutableURLRequest *requestUrl = [[OAMutableURLRequest alloc] initWithURL:queryUrl
+ consumer:consumer
+ token:accessToken
+ realm:nil
+ signatureProvider:nil];
+
+ NSLog(@"Created Mutable request to %@",[requestUrl URL]);
+ [requestUrl setHTTPMethod:@"GET"];
+ OADataFetcher *fetcher = [[OADataFetcher alloc]init];
+ NSLog(@"Created fetcher");
+ [fetcher fetchDataWithRequest:requestUrl
+ delegate:self
+ didFinishSelector:@selector(accessTokenTicket:didFinishWithData:)
+ didFailSelector:@selector(accessTokenTicket:didFailWithError:)];
+ [fetcher release];
+ [requestUrl release];
+ [consumer release];
+
+}
+-(void) accessTokenTicket: (OAServiceTicket *) ticket
+ didFinishWithData: (NSData *)data
+{
+ NSLog(@"Made Request");
+ if(ticket.didSucceed)
+ {
+ NSLog(@"Ticket succeeded");
+ NSString *responseBody = [[NSString alloc] initWithData:data
+ encoding:NSUTF8StringEncoding];
+ NSLog(@"got response %@",responseBody);
+ [output setStringValue:responseBody];
+ }
+ else
+ {
+ NSLog(@"Ticket didn't succeed");
+ NSString *responseBody = [[NSString alloc] initWithData:data
+ encoding:NSUTF8StringEncoding];
+ NSLog(@"got response %@",responseBody);
+ }
+}
+-(void) accessTokenTicket: (OAServiceTicket *) ticket
+ didFailWithError:(NSError *)error
+{
+ NSLog(@"Error in request returned error");
+ NSLog(@"Error = %@",[error localizedDescription]);
+}
+-(IBAction)back:(id)sender
+{
+ [parent setViewName:@"GetAccessToken"];
+}
+@end
View
242 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/owen.mode1v3
@@ -231,8 +231,6 @@
<key>Layout</key>
<array>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
@@ -276,15 +274,14 @@
<string>1DDD582A0DA1D0D100B32029</string>
<string>2A37F4C3FDCFA73011CA2CEA</string>
<string>1058C7A6FEA54F5311CA2CBB</string>
- <string>5A9549320F4E1CD90053FC24</string>
<string>1C37FBAC04509CD000000102</string>
<string>1C37FABC05509CD000000102</string>
</array>
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array>
<array>
- <integer>26</integer>
- <integer>18</integer>
+ <integer>16</integer>
+ <integer>1</integer>
<integer>0</integer>
</array>
</array>
@@ -319,12 +316,14 @@
<key>Dock</key>
<array>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>1CE0B20306471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
- <string>AccessTokenViewController.m</string>
+ <string>OAuthRequestController.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
@@ -332,37 +331,46 @@
<key>PBXProjectModuleGUID</key>
<string>1CE0B20406471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
- <string>AccessTokenViewController.m</string>
+ <string>OAuthRequestController.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>5AD8292D0F52201500E572A1</string>
+ <string>5AD82AD60F52490900E572A1</string>
<key>history</key>
<array>
<string>5A8022070F4E2F4900DF362B</string>
<string>5A80229D0F4E336D00DF362B</string>
<string>5A80230D0F4E3DA800DF362B</string>
<string>5A8023C10F4E4CFF00DF362B</string>
- <string>5A2BF18C0F4E536A003C64B0</string>
<string>5A0AFA630F50EAD900A1CEA2</string>
- <string>5A0AFA640F50EAD900A1CEA2</string>
<string>5AD8281F0F51F5A300E572A1</string>
- <string>5AD8284F0F520BA600E572A1</string>
- <string>5AD828810F520EA200E572A1</string>
<string>5AD828960F52123E00E572A1</string>
<string>5AD828970F52123E00E572A1</string>
<string>5AD828990F52123E00E572A1</string>
<string>5AD8289D0F52123E00E572A1</string>
<string>5AD828C70F52130400E572A1</string>
- <string>5AD828EE0F5213EB00E572A1</string>
<string>5AD828FD0F5216ED00E572A1</string>
- <string>5AD829090F521DE700E572A1</string>
- <string>5AD8290A0F521DE700E572A1</string>
- <string>5AD8290B0F521DE700E572A1</string>
- <string>5AD8290C0F521DE700E572A1</string>
- <string>5AD8290D0F521DE700E572A1</string>
- <string>5AD8291F0F521E0000E572A1</string>
- <string>5AD829200F521E0000E572A1</string>
+ <string>5AD8299C0F52271600E572A1</string>
+ <string>5AD8299E0F52271600E572A1</string>
+ <string>5AD829A00F52271600E572A1</string>
+ <string>5AD829A20F52271600E572A1</string>
+ <string>5AD829C70F52286200E572A1</string>
+ <string>5AD829C90F52286200E572A1</string>
+ <string>5AD829F10F522ACF00E572A1</string>
+ <string>5AD82A270F5235BC00E572A1</string>
+ <string>5AD82A430F52402700E572A1</string>
+ <string>5AD82A470F52402700E572A1</string>
+ <string>5AD82A790F52413600E572A1</string>
+ <string>5AD82AA50F5241A400E572A1</string>
+ <string>5AD82AA70F5241A400E572A1</string>
+ <string>5AD82AB60F52432100E572A1</string>
+ <string>5AD82AB70F52432100E572A1</string>
+ <string>5AD82AB80F52432100E572A1</string>
+ <string>5AD82AB90F52432100E572A1</string>
+ <string>5AD82ABA0F52432100E572A1</string>
+ <string>5AD82ACB0F52439300E572A1</string>
+ <string>5AD82ACC0F52439300E572A1</string>
+ <string>5AD82ACD0F52439300E572A1</string>
</array>
<key>prevStack</key>
<array>
@@ -388,74 +396,94 @@
<string>5A0AFA6A0F50EAD900A1CEA2</string>
<string>5A0AFA750F50EAD900A1CEA2</string>
<string>5ABC95B70F51521D0016B85E</string>
- <string>5AD8285A0F520BA600E572A1</string>
- <string>5AD8285B0F520BA600E572A1</string>
- <string>5AD8285C0F520BA600E572A1</string>
- <string>5AD8285D0F520BA600E572A1</string>
- <string>5AD8285E0F520BA600E572A1</string>
- <string>5AD8285F0F520BA600E572A1</string>
- <string>5AD828600F520BA600E572A1</string>
- <string>5AD828610F520BA600E572A1</string>
- <string>5AD828620F520BA600E572A1</string>
- <string>5AD828630F520BA600E572A1</string>
- <string>5AD828640F520BA600E572A1</string>
- <string>5AD828650F520BA600E572A1</string>
- <string>5AD828660F520BA600E572A1</string>
- <string>5AD828670F520BA600E572A1</string>
- <string>5AD828680F520BA600E572A1</string>
- <string>5AD828690F520BA600E572A1</string>
- <string>5AD8286A0F520BA600E572A1</string>
- <string>5AD8286B0F520BA600E572A1</string>
- <string>5AD8286C0F520BA600E572A1</string>
- <string>5AD8286D0F520BA600E572A1</string>
- <string>5AD8286E0F520BA600E572A1</string>
- <string>5AD828850F520EA200E572A1</string>
- <string>5AD828860F520EA200E572A1</string>
- <string>5AD828870F520EA200E572A1</string>
- <string>5AD828880F520EA200E572A1</string>
- <string>5AD828890F520EA200E572A1</string>
- <string>5AD8288A0F520EA200E572A1</string>
- <string>5AD8288B0F520EA200E572A1</string>
- <string>5AD8288C0F520EA200E572A1</string>
- <string>5AD8289F0F52123E00E572A1</string>
- <string>5AD828A00F52123E00E572A1</string>
- <string>5AD828A10F52123E00E572A1</string>
- <string>5AD828A20F52123E00E572A1</string>
- <string>5AD828A30F52123E00E572A1</string>
- <string>5AD828A40F52123E00E572A1</string>
- <string>5AD828A50F52123E00E572A1</string>
- <string>5AD828A60F52123E00E572A1</string>
- <string>5AD828A70F52123E00E572A1</string>
<string>5AD828A80F52123E00E572A1</string>
- <string>5AD828AA0F52123E00E572A1</string>
- <string>5AD828AB0F52123E00E572A1</string>
<string>5AD828AD0F52123E00E572A1</string>
- <string>5AD828AF0F52123E00E572A1</string>
- <string>5AD828B00F52123E00E572A1</string>
- <string>5AD828B10F52123E00E572A1</string>
- <string>5AD828CA0F52130400E572A1</string>
- <string>5AD828CB0F52130400E572A1</string>
- <string>5AD828CC0F52130400E572A1</string>
- <string>5AD828CD0F52130400E572A1</string>
- <string>5AD828D30F52134500E572A1</string>
- <string>5AD828F00F5213EB00E572A1</string>
- <string>5AD829010F5216ED00E572A1</string>
- <string>5AD829020F5216ED00E572A1</string>
- <string>5AD829030F5216ED00E572A1</string>
- <string>5AD829040F5216ED00E572A1</string>
- <string>5AD829100F521DE700E572A1</string>
- <string>5AD829110F521DE700E572A1</string>
- <string>5AD829120F521DE700E572A1</string>
- <string>5AD829130F521DE700E572A1</string>
- <string>5AD829140F521DE700E572A1</string>
- <string>5AD829150F521DE700E572A1</string>
- <string>5AD829160F521DE700E572A1</string>
- <string>5AD829170F521DE700E572A1</string>
- <string>5AD829180F521DE700E572A1</string>
- <string>5AD829190F521DE700E572A1</string>
- <string>5AD8291A0F521DE700E572A1</string>
- <string>5AD8291B0F521DE700E572A1</string>
- <string>5AD829210F521E0000E572A1</string>
+ <string>5AD829580F52254B00E572A1</string>
+ <string>5AD8295C0F52254B00E572A1</string>
+ <string>5AD829A90F52271600E572A1</string>
+ <string>5AD829AB0F52271600E572A1</string>
+ <string>5AD829AD0F52271600E572A1</string>
+ <string>5AD829AF0F52271600E572A1</string>
+ <string>5AD829CF0F52286200E572A1</string>
+ <string>5AD829D10F52286200E572A1</string>
+ <string>5AD82A2A0F5235BC00E572A1</string>
+ <string>5AD82A2B0F5235BC00E572A1</string>
+ <string>5AD82A4C0F52402700E572A1</string>
+ <string>5AD82A4D0F52402700E572A1</string>
+ <string>5AD82A4E0F52402700E572A1</string>
+ <string>5AD82A4F0F52402700E572A1</string>
+ <string>5AD82A500F52402700E572A1</string>
+ <string>5AD82A510F52402700E572A1</string>
+ <string>5AD82A520F52402700E572A1</string>
+ <string>5AD82A530F52402700E572A1</string>
+ <string>5AD82A540F52402700E572A1</string>
+ <string>5AD82A550F52402700E572A1</string>
+ <string>5AD82A560F52402700E572A1</string>
+ <string>5AD82A570F52402700E572A1</string>
+ <string>5AD82A580F52402700E572A1</string>
+ <string>5AD82A590F52402700E572A1</string>
+ <string>5AD82A5A0F52402700E572A1</string>
+ <string>5AD82A5B0F52402700E572A1</string>
+ <string>5AD82A5C0F52402700E572A1</string>
+ <string>5AD82A5D0F52402700E572A1</string>
+ <string>5AD82A5E0F52402700E572A1</string>
+ <string>5AD82A5F0F52402700E572A1</string>
+ <string>5AD82A600F52402700E572A1</string>
+ <string>5AD82A610F52402700E572A1</string>
+ <string>5AD82A620F52402700E572A1</string>
+ <string>5AD82A630F52402700E572A1</string>
+ <string>5AD82A640F52402700E572A1</string>
+ <string>5AD82A650F52402700E572A1</string>
+ <string>5AD82A660F52402700E572A1</string>
+ <string>5AD82A670F52402700E572A1</string>
+ <string>5AD82A680F52402700E572A1</string>
+ <string>5AD82A690F52402700E572A1</string>
+ <string>5AD82A6A0F52402700E572A1</string>
+ <string>5AD82A6B0F52402700E572A1</string>
+ <string>5AD82A800F52413600E572A1</string>
+ <string>5AD82A810F52413600E572A1</string>
+ <string>5AD82A820F52413600E572A1</string>
+ <string>5AD82A830F52413600E572A1</string>
+ <string>5AD82A840F52413600E572A1</string>
+ <string>5AD82A850F52413600E572A1</string>
+ <string>5AD82A860F52413600E572A1</string>
+ <string>5AD82A870F52413600E572A1</string>
+ <string>5AD82A880F52413600E572A1</string>
+ <string>5AD82A890F52413600E572A1</string>
+ <string>5AD82A8A0F52413600E572A1</string>
+ <string>5AD82A8B0F52413600E572A1</string>
+ <string>5AD82A8C0F52413600E572A1</string>
+ <string>5AD82A8D0F52413600E572A1</string>
+ <string>5AD82A8E0F52413600E572A1</string>
+ <string>5AD82A8F0F52413600E572A1</string>
+ <string>5AD82A900F52413600E572A1</string>
+ <string>5AD82A910F52413600E572A1</string>
+ <string>5AD82A920F52413600E572A1</string>
+ <string>5AD82A930F52413600E572A1</string>
+ <string>5AD82A940F52413600E572A1</string>
+ <string>5AD82A950F52413600E572A1</string>
+ <string>5AD82A960F52413600E572A1</string>
+ <string>5AD82A9F0F52417800E572A1</string>
+ <string>5AD82AA00F52417800E572A1</string>
+ <string>5AD82AA10F52417800E572A1</string>
+ <string>5AD82AA20F52417800E572A1</string>
+ <string>5AD82AA30F52417800E572A1</string>
+ <string>5AD82AAA0F5241A400E572A1</string>
+ <string>5AD82AAB0F5241A400E572A1</string>
+ <string>5AD82AAC0F5241A400E572A1</string>
+ <string>5AD82AAD0F5241A400E572A1</string>
+ <string>5AD82AAE0F5241A400E572A1</string>
+ <string>5AD82ABC0F52432100E572A1</string>
+ <string>5AD82ABD0F52432100E572A1</string>
+ <string>5AD82ABE0F52432100E572A1</string>
+ <string>5AD82ABF0F52432100E572A1</string>
+ <string>5AD82AC00F52432100E572A1</string>
+ <string>5AD82AC10F52432100E572A1</string>
+ <string>5AD82AC20F52432100E572A1</string>
+ <string>5AD82AC30F52432100E572A1</string>
+ <string>5AD82ACE0F52439300E572A1</string>
+ <string>5AD82ACF0F52439300E572A1</string>
+ <string>5AD82AD00F52439300E572A1</string>
</array>
</dict>
<key>SplitCount</key>
@@ -513,9 +541,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>5AD828370F52035300E572A1</string>
+ <string>5AD82A1C0F522E5600E572A1</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>5AD828380F52035300E572A1</string>
+ <string>5AD82A1D0F522E5600E572A1</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -649,11 +677,11 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>5AD828DF0F52138200E572A1</string>
- <string>5AD828700F520BA600E572A1</string>
- <string>5AD828710F520BA600E572A1</string>
+ <string>5AD82AC60F52432100E572A1</string>
+ <string>5AD82AC70F52432100E572A1</string>
<string>1C78EAAD065D492600B07095</string>
<string>1CD10A99069EF8BA00B06720</string>
+ <string>5A8021800F4E1EFB00DF362B</string>
<string>/Users/owen/Projects/oauth-mvc.net/oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj</string>
</array>
<key>WindowString</key>
@@ -678,21 +706,21 @@
<key>PBXProjectModuleGUID</key>
<string>1CD0528F0623707200166675</string>
<key>PBXProjectModuleLabel</key>
- <string>AccessTokenViewController.m</string>
+ <string>PreferenceController.m</string>
<key>StatusBarVisibility</key>
<true/>
</dict>
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {500, 218}}</string>
+ <string>{{0, 0}, {500, 225}}</string>
<key>RubberWindowFrame</key>
<string>560 158 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>218pt</string>
+ <string>225pt</string>
</dict>
<dict>
<key>BecomeActive</key>
@@ -711,14 +739,14 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 223}, {500, 236}}</string>
+ <string>{{0, 230}, {500, 229}}</string>
<key>RubberWindowFrame</key>
<string>560 158 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXBuildResultsModule</string>
<key>Proportion</key>
- <string>236pt</string>
+ <string>229pt</string>
</dict>
</array>
<key>Proportion</key>
@@ -736,7 +764,7 @@
<key>TableOfContents</key>
<array>
<string>5A8021800F4E1EFB00DF362B</string>
- <string>5AD8283F0F520B6200E572A1</string>
+ <string>5AD82A2E0F5235BC00E572A1</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
@@ -747,7 +775,7 @@
<key>WindowToolGUID</key>
<string>5A8021800F4E1EFB00DF362B</string>
<key>WindowToolIsVisible</key>
- <true/>
+ <false/>
</dict>
<dict>
<key>FirstTimeWindowDisplayed</key>
@@ -856,13 +884,13 @@
<key>TableOfContents</key>
<array>
<string>1CD10A99069EF8BA00B06720</string>
- <string>5AD828400F520B6200E572A1</string>
+ <string>5AD82A2F0F5235BC00E572A1</string>
<string>1C162984064C10D400B95A72</string>
- <string>5AD828410F520B6200E572A1</string>
- <string>5AD828420F520B6200E572A1</string>
- <string>5AD828430F520B6200E572A1</string>
- <string>5AD828440F520B6200E572A1</string>
- <string>5AD828450F520B6200E572A1</string>
+ <string>5AD82A300F5235BC00E572A1</string>
+ <string>5AD82A310F5235BC00E572A1</string>
+ <string>5AD82A320F5235BC00E572A1</string>
+ <string>5AD82A330F5235BC00E572A1</string>
+ <string>5AD82A340F5235BC00E572A1</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.debugV3</string>
@@ -995,7 +1023,7 @@
<key>Frame</key>
<string>{{0, 0}, {650, 209}}</string>
<key>RubberWindowFrame</key>
- <string>517 690 650 250 0 0 1680 1028 </string>
+ <string>-825 252 650 250 -1280 250 1280 800 </string>
</dict>
<key>Module</key>
<string>PBXDebugCLIModule</string>
@@ -1018,13 +1046,13 @@
<key>TableOfContents</key>
<array>
<string>1C78EAAD065D492600B07095</string>
- <string>5AD828460F520B6200E572A1</string>
+ <string>5AD82A350F5235BC00E572A1</string>
<string>1C78EAAC065D492600B07095</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.consoleV3</string>
<key>WindowString</key>
- <string>517 690 650 250 0 0 1680 1028 </string>
+ <string>-825 252 650 250 -1280 250 1280 800 </string>
<key>WindowToolGUID</key>
<string>1C78EAAD065D492600B07095</string>
<key>WindowToolIsVisible</key>
View
3,322 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/owen.pbxuser
2,660 additions, 662 deletions not shown
View
10 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/project.pbxproj
@@ -19,6 +19,8 @@
5AB8C79D0F4EA49200DF8502 /* ApplicationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8C79C0F4EA49200DF8502 /* ApplicationController.m */; };
5AB8C7A00F4EA4DF00DF8502 /* PreferenceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AB8C79F0F4EA4DF00DF8502 /* PreferenceController.m */; };
5AB8C7A20F4EA81100DF8502 /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5AB8C7A10F4EA81100DF8502 /* Preferences.xib */; };
+ 5AD829370F52227600E572A1 /* OAuthRequestController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AD829360F52227600E572A1 /* OAuthRequestController.m */; };
+ 5AD829C40F52284B00E572A1 /* OAuthRequest.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5AD829C30F52284B00E572A1 /* OAuthRequest.xib */; };
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; };
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; };
8D15AC310486D014006FF6A4 /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4ACFDCFA73011CA2CEA /* MyDocument.m */; settings = {ATTRIBUTES = (); }; };
@@ -67,6 +69,9 @@
5AB8C79E0F4EA4DF00DF8502 /* PreferenceController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PreferenceController.h; sourceTree = "<group>"; };
5AB8C79F0F4EA4DF00DF8502 /* PreferenceController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PreferenceController.m; sourceTree = "<group>"; };
5AB8C7A10F4EA81100DF8502 /* Preferences.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Preferences.xib; sourceTree = "<group>"; };
+ 5AD829350F52227600E572A1 /* OAuthRequestController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OAuthRequestController.h; sourceTree = "<group>"; };
+ 5AD829360F52227600E572A1 /* OAuthRequestController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OAuthRequestController.m; sourceTree = "<group>"; };
+ 5AD829C30F52284B00E572A1 /* OAuthRequest.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OAuthRequest.xib; sourceTree = "<group>"; };
8D15AC360486D014006FF6A4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8D15AC370486D014006FF6A4 /* oauth-sample-consumer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "oauth-sample-consumer.app"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -139,6 +144,8 @@
5AB8C79C0F4EA49200DF8502 /* ApplicationController.m */,
5AB8C79E0F4EA4DF00DF8502 /* PreferenceController.h */,
5AB8C79F0F4EA4DF00DF8502 /* PreferenceController.m */,
+ 5AD829350F52227600E572A1 /* OAuthRequestController.h */,
+ 5AD829360F52227600E572A1 /* OAuthRequestController.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -163,6 +170,7 @@
5A8021840F4E1FF500DF362B /* RequestTokenView.xib */,
5A8023060F4E3C0D00DF362B /* AccessTokenView.xib */,
5AB8C7A10F4EA81100DF8502 /* Preferences.xib */,
+ 5AD829C30F52284B00E572A1 /* OAuthRequest.xib */,
);
name = Resources;
sourceTree = "<group>";
@@ -227,6 +235,7 @@
5A8021850F4E1FF500DF362B /* RequestTokenView.xib in Resources */,
5A8023070F4E3C0D00DF362B /* AccessTokenView.xib in Resources */,
5AB8C7A20F4EA81100DF8502 /* Preferences.xib in Resources */,
+ 5AD829C40F52284B00E572A1 /* OAuthRequest.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -244,6 +253,7 @@
5A8022FD0F4E39E200DF362B /* AccessTokenViewController.m in Sources */,
5AB8C79D0F4EA49200DF8502 /* ApplicationController.m in Sources */,
5AB8C7A00F4EA4DF00DF8502 /* PreferenceController.m in Sources */,
+ 5AD829370F52227600E572A1 /* OAuthRequestController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Please sign in to comment.
Something went wrong with that request. Please try again.