Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding sample oauth consumer in cocoa

commit 72b08a19ae4a2692d1c1dc0167902311263757c8 1 parent 60eae83
Owen Evans authored
Showing with 6,466 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +805 −0 oauth-sample-consumer-cocoa/AccessTokenView.xib
  3. +28 −0 oauth-sample-consumer-cocoa/AccessTokenViewController.h
  4. +104 −0 oauth-sample-consumer-cocoa/AccessTokenViewController.m
  5. +17 −0 oauth-sample-consumer-cocoa/ApplicationController.h
  6. +21 −0 oauth-sample-consumer-cocoa/ApplicationController.m
  7. +29 −0 oauth-sample-consumer-cocoa/English.lproj/Credits.rtf
  8. BIN  oauth-sample-consumer-cocoa/English.lproj/InfoPlist.strings
  9. +474 −0 oauth-sample-consumer-cocoa/English.lproj/MainMenu.xib
  10. +269 −0 oauth-sample-consumer-cocoa/English.lproj/MyDocument.xib
  11. +49 −0 oauth-sample-consumer-cocoa/Info.plist
  12. +25 −0 oauth-sample-consumer-cocoa/ManagingViewController.h
  13. +23 −0 oauth-sample-consumer-cocoa/ManagingViewController.m
  14. +21 −0 oauth-sample-consumer-cocoa/MyDocument.h
  15. +112 −0 oauth-sample-consumer-cocoa/MyDocument.m
  16. +1 −0  oauth-sample-consumer-cocoa/OAuthConsumer.framework/Headers
  17. +1 −0  oauth-sample-consumer-cocoa/OAuthConsumer.framework/OAuthConsumer
  18. +1 −0  oauth-sample-consumer-cocoa/OAuthConsumer.framework/Resources
  19. +35 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/NSMutableURLRequest+Parameters.h
  20. +34 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/NSString+URLEncoding.h
  21. +34 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/NSURL+Base.h
  22. +40 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAConsumer.h
  23. +45 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OADataFetcher.h
  24. +32 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAHMAC_SHA1SignatureProvider.h
  25. +65 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAMutableURLRequest.h
  26. +31 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAPlaintextSignatureProvider.h
  27. +45 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OARequestParameter.h
  28. +43 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAServiceTicket.h
  29. +34 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OASignatureProviding.h
  30. +41 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAToken.h
  31. +19 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAToken_KeychainExtensions.h
  32. +38 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Headers/OAuthConsumer.h
  33. BIN  oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/OAuthConsumer
  34. BIN  oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
  35. +22 −0 oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/A/Resources/Info.plist
  36. +1 −0  oauth-sample-consumer-cocoa/OAuthConsumer.framework/Versions/Current
  37. +16 −0 oauth-sample-consumer-cocoa/PreferenceController.h
  38. +14 −0 oauth-sample-consumer-cocoa/PreferenceController.m
  39. +169 −0 oauth-sample-consumer-cocoa/Preferences.xib
  40. +653 −0 oauth-sample-consumer-cocoa/RequestTokenView.xib
  41. +26 −0 oauth-sample-consumer-cocoa/RequestTokenViewController.h
  42. +90 −0 oauth-sample-consumer-cocoa/RequestTokenViewController.m
  43. +15 −0 oauth-sample-consumer-cocoa/ViewParent.h
  44. +14 −0 oauth-sample-consumer-cocoa/ViewParent.m
  45. +14 −0 oauth-sample-consumer-cocoa/main.m
  46. BIN  oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/TemplateIcon.icns
  47. +1,467 −0 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/owen.mode1v3
  48. +1,064 −0 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/owen.pbxuser
  49. +377 −0 oauth-sample-consumer-cocoa/oauth-sample-consumer.xcodeproj/project.pbxproj
  50. +7 −0 oauth-sample-consumer-cocoa/oauth-sample-consumer_Prefix.pch
View
1  .gitignore
@@ -5,3 +5,4 @@
bin
obj
*.user
+build
View
805 oauth-sample-consumer-cocoa/AccessTokenView.xib
@@ -0,0 +1,805 @@
+<?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">AccessTokenViewController</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="560574705">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSTextField" id="994976933">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 434}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="338218003">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <object class="NSFont" key="NSSupport" id="312662123">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">1.300000e+01</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <reference key="NSControlView" ref="994976933"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <object class="NSColor" key="NSBackgroundColor" id="981358812">
+ <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="415799492">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textColor</string>
+ <object class="NSColor" key="NSColor" id="845856038">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSTextField" id="211950981">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 402}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="484530478">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="211950981"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="981358812"/>
+ <reference key="NSTextColor" ref="415799492"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="931292101">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 370}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="551235937">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="931292101"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="981358812"/>
+ <reference key="NSTextColor" ref="415799492"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="894586955">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 338}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="127294107">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="894586955"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="981358812"/>
+ <reference key="NSTextColor" ref="415799492"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="349697069">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{176, 436}, {96, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="701661113">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Consumer Key</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="349697069"/>
+ <object class="NSColor" key="NSBackgroundColor" id="890581049">
+ <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" id="264198047">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <reference key="NSColor" ref="845856038"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSTextField" id="917558501">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{161, 404}, {111, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="53595757">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Consumer Secret</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="917558501"/>
+ <reference key="NSBackgroundColor" ref="890581049"/>
+ <reference key="NSTextColor" ref="264198047"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="197016136">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{147, 372}, {125, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="611143185">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Request Token Key</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="197016136"/>
+ <reference key="NSBackgroundColor" ref="890581049"/>
+ <reference key="NSTextColor" ref="264198047"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="339457297">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{131, 340}, {141, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="638447967">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Request Token Secret</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="339457297"/>
+ <reference key="NSBackgroundColor" ref="890581049"/>
+ <reference key="NSTextColor" ref="264198047"/>
+ </object>
+ </object>
+ <object class="NSButton" id="568522222">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{208, 138}, {152, 32}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="995554620">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Get Access Token</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="568522222"/>
+ <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="1067460704">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{185, 170}, {199, 32}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="93186111">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Authorise Request Token</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="1067460704"/>
+ <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="984870824">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 306}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="1012108457">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="984870824"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="981358812"/>
+ <reference key="NSTextColor" ref="415799492"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="683902648">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{131, 308}, {141, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="892282731">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Access Token Key</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="683902648"/>
+ <reference key="NSBackgroundColor" ref="890581049"/>
+ <reference key="NSTextColor" ref="264198047"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="272804485">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{135, 280}, {133, 17}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="1035468755">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Access Token Secret</string>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="272804485"/>
+ <reference key="NSBackgroundColor" ref="890581049"/>
+ <reference key="NSTextColor" ref="264198047"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="829096156">
+ <reference key="NSNextResponder" ref="560574705"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{277, 278}, {251, 22}}</string>
+ <reference key="NSSuperview" ref="560574705"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="309075573">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="312662123"/>
+ <reference key="NSControlView" ref="829096156"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="981358812"/>
+ <reference key="NSTextColor" ref="415799492"/>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrameSize">{566, 476}</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">consumerKey</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="994976933"/>
+ </object>
+ <int key="connectionID">20</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">consumerSecret</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="211950981"/>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">requestTokenKey</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="931292101"/>
+ </object>
+ <int key="connectionID">22</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">requestTokenSecret</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="894586955"/>
+ </object>
+ <int key="connectionID">23</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">getAccessToken:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="568522222"/>
+ </object>
+ <int key="connectionID">24</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="560574705"/>
+ </object>
+ <int key="connectionID">25</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">validateAccessToken:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="1067460704"/>
+ </object>
+ <int key="connectionID">28</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">accessTokenKey</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="984870824"/>
+ </object>
+ <int key="connectionID">37</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">accessTokenSecret</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="829096156"/>
+ </object>
+ <int key="connectionID">38</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="560574705"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="994976933"/>
+ <reference ref="211950981"/>
+ <reference ref="931292101"/>
+ <reference ref="894586955"/>
+ <reference ref="917558501"/>
+ <reference ref="349697069"/>
+ <reference ref="339457297"/>
+ <reference ref="197016136"/>
+ <reference ref="568522222"/>
+ <reference ref="1067460704"/>
+ <reference ref="984870824"/>
+ <reference ref="683902648"/>
+ <reference ref="829096156"/>
+ <reference ref="272804485"/>
+ </object>
+ <reference key="parent" ref="1002"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="994976933"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="338218003"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="338218003"/>
+ <reference key="parent" ref="994976933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="211950981"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="484530478"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="484530478"/>
+ <reference key="parent" ref="211950981"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="931292101"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="551235937"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="551235937"/>
+ <reference key="parent" ref="931292101"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="894586955"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="127294107"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">9</int>
+ <reference key="object" ref="127294107"/>
+ <reference key="parent" ref="894586955"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="349697069"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="701661113"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="701661113"/>
+ <reference key="parent" ref="349697069"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="917558501"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="53595757"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">13</int>
+ <reference key="object" ref="53595757"/>
+ <reference key="parent" ref="917558501"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="197016136"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="611143185"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="611143185"/>
+ <reference key="parent" ref="197016136"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="339457297"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="638447967"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="638447967"/>
+ <reference key="parent" ref="339457297"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="568522222"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="995554620"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">19</int>
+ <reference key="object" ref="995554620"/>
+ <reference key="parent" ref="568522222"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">26</int>
+ <reference key="object" ref="1067460704"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="93186111"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">27</int>
+ <reference key="object" ref="93186111"/>
+ <reference key="parent" ref="1067460704"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">29</int>
+ <reference key="object" ref="984870824"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="1012108457"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">30</int>
+ <reference key="object" ref="1012108457"/>
+ <reference key="parent" ref="984870824"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">31</int>
+ <reference key="object" ref="683902648"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="892282731"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">32</int>
+ <reference key="object" ref="892282731"/>
+ <reference key="parent" ref="683902648"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">33</int>
+ <reference key="object" ref="272804485"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="1035468755"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">34</int>
+ <reference key="object" ref="1035468755"/>
+ <reference key="parent" ref="272804485"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">35</int>
+ <reference key="object" ref="829096156"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="309075573"/>
+ </object>
+ <reference key="parent" ref="560574705"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">36</int>
+ <reference key="object" ref="309075573"/>
+ <reference key="parent" ref="829096156"/>
+ </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>10.IBPluginDependency</string>
+ <string>11.IBPluginDependency</string>
+ <string>12.IBPluginDependency</string>
+ <string>13.IBPluginDependency</string>
+ <string>14.IBPluginDependency</string>
+ <string>15.IBPluginDependency</string>
+ <string>16.IBPluginDependency</string>
+ <string>17.IBPluginDependency</string>
+ <string>18.IBPluginDependency</string>
+ <string>19.IBPluginDependency</string>
+ <string>2.IBPluginDependency</string>
+ <string>26.IBPluginDependency</string>
+ <string>27.IBPluginDependency</string>
+ <string>29.IBPluginDependency</string>
+ <string>3.IBPluginDependency</string>
+ <string>30.IBPluginDependency</string>
+ <string>31.IBPluginDependency</string>
+ <string>32.IBPluginDependency</string>
+ <string>33.IBPluginDependency</string>
+ <string>34.IBPluginDependency</string>
+ <string>35.IBPluginDependency</string>
+ <string>36.IBPluginDependency</string>
+ <string>4.IBPluginDependency</string>
+ <string>5.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>{{786, 427}, {566, 476}}</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>
+ <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>
+ <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">38</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">AccessTokenViewController</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>getAccessToken:</string>
+ <string>validateAccessToken:</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>accessTokenKey</string>
+ <string>accessTokenSecret</string>
+ <string>consumerKey</string>
+ <string>consumerSecret</string>
+ <string>requestTokenKey</string>
+ <string>requestTokenSecret</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">AccessTokenViewController.h</string>
+ </object>
+ </object>
+ <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>
+ </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
28 oauth-sample-consumer-cocoa/AccessTokenViewController.h
@@ -0,0 +1,28 @@
+//
+// AccessTokenViewController.h
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import <OAuthConsumer/OAuthConsumer.h>
+#import "ManagingViewController.h"
+
+
+@interface AccessTokenViewController : ManagingViewController {
+ IBOutlet NSTextField *requestTokenSecret;
+ IBOutlet NSTextField *requestTokenKey;
+ IBOutlet NSTextField *consumerKey;
+ IBOutlet NSTextField *consumerSecret;
+ IBOutlet NSTextField *accessTokenKey;
+ IBOutlet NSTextField *accessTokenSecret;
+}
+-(IBAction) getAccessToken:(id)sender;
+-(void)accessTokenTicket:(OAServiceTicket *)ticket
+ didFailWithError:(NSError *) error;
+- (void)accessTokenTicket:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data;
+-(IBAction) validateAccessToken:(id)sender;
+
+@end
View
104 oauth-sample-consumer-cocoa/AccessTokenViewController.m
@@ -0,0 +1,104 @@
+//
+// AccessTokenViewController.m
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import "AccessTokenViewController.h"
+
+
+@implementation AccessTokenViewController
+-(id) init
+{
+ if(![super initWithNibName:@"AccessTokenView" bundle:nil])
+ {
+ return nil;
+ }
+ [self setTitle:@"Get Access Token"];
+
+ return self;
+}
+-(void) loadView
+{
+ [super loadView];
+ NSString *consumerKeyValue = [parent getSharedValue:OACConsumerKey];
+ NSLog(@"Loaded Key from store %@",consumerKeyValue);
+ [consumerKey setStringValue:[parent getSharedValue:OACConsumerKey]];
+ [consumerSecret setStringValue:[parent getSharedValue:OACConsumerSecret]];
+ [requestTokenKey setStringValue:[parent getSharedValue:OACRequestTokenKey]];
+ [requestTokenSecret setStringValue:[parent getSharedValue:OACRequestTokenSecret]];
+ [consumerKey setEditable:FALSE];
+ [consumerKey setSelectable:FALSE];
+ [consumerSecret setEditable:FALSE];
+ [consumerSecret setSelectable:FALSE];
+ [requestTokenKey setEditable:FALSE];
+ [requestTokenSecret setSelectable:FALSE];
+ [accessTokenKey setEditable:FALSE];
+ [accessTokenSecret setSelectable:FALSE];
+}
+-(IBAction) getAccessToken:(id)sender
+{
+ NSString *consumerKeyValue = [consumerKey stringValue];
+ NSLog(@"Loaded consumer key from screen %@",consumerKeyValue);
+ NSString *consumerSecretValue = [consumerSecret stringValue];
+ NSLog(@"Loaded consumer secret from screen %@",consumerSecretValue);
+ OAConsumer *consumer = [[OAConsumer alloc] initWithKey:consumerKeyValue secret:consumerSecretValue];
+ OAToken *requestToken = [[OAToken alloc] initWithKey:[requestTokenKey stringValue] secret:[requestTokenSecret stringValue]];
+ NSLog(@"created token");
+ NSURL *requestUrl = [NSURL URLWithString:@"http://172.19.105.240/oauth/AccessToken"];
+ NSLog(@"Created URL");
+ OAMutableURLRequest *request = [[OAMutableURLRequest alloc]initWithURL:requestUrl
+ consumer:consumer
+ token:requestToken
+ realm:nil
+ signatureProvider:nil];
+ NSLog(@"Created Mutable URL Request");
+ [request setHTTPMethod:@"POST"];
+ NSLog(@"Created Request");
+ OADataFetcher *fetcher = [[OADataFetcher alloc]init];
+ NSLog(@"Created fetcher");
+ [fetcher fetchDataWithRequest:request
+ delegate:self
+ didFinishSelector:@selector(accessTokenTicket:didFinishWithData:)
+ didFailSelector:@selector(accessTokenTicket:didFailWithError:)];
+ NSLog(@"initialised fetcher");
+ [fetcher release];
+ [request release];
+ [consumer release];
+}
+-(void) accessTokenTicket: (OAServiceTicket *) ticket
+didFinishWithData:(NSData *)data
+{
+ NSLog(@"Got Access ticket");
+ if(ticket.didSucceed)
+ {
+ NSLog(@"Ticket succeeded");
+ NSString *responseBody = [[NSString alloc] initWithData:data
+ encoding:NSUTF8StringEncoding];
+ OAToken *accessToken = [[OAToken alloc] initWithHTTPResponseBody:responseBody];
+ NSLog(@"Got Ticket Key %@ and secret %@",[accessToken key],[accessToken secret]);
+ [accessTokenKey setStringValue:[accessToken key]];
+ [accessTokenSecret setStringValue:[accessToken secret]];
+ }
+ else
+ {
+ NSLog(@"Ticket didn't succeed");
+ }
+}
+-(void) accessTokenTicket: (OAServiceTicket *) ticket
+ didFailWithError:(NSError *)error
+{
+ NSLog(@"Access token request returned error");
+ NSLog(@"Error = %@",[error localizedDescription]);
+
+}
+-(IBAction) validateAccessToken:(id)sender
+{
+ NSString *urlString = [NSString stringWithFormat:@"http://172.19.105.240/Account/AuthoriseRequestToken?oauth_token=%@",[requestTokenKey stringValue]];
+ NSURL *url = [NSURL URLWithString:urlString];
+ [[NSWorkspace sharedWorkspace] openURL:url];
+
+}
+@end
View
17 oauth-sample-consumer-cocoa/ApplicationController.h
@@ -0,0 +1,17 @@
+//
+// ApplicationController.h
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "PreferenceController.h"
+
+@interface ApplicationController : NSObject {
+ PreferenceController *preferenceController;
+
+}
+-(IBAction) showPreferenceController:(id)sender;
+@end
View
21 oauth-sample-consumer-cocoa/ApplicationController.m
@@ -0,0 +1,21 @@
+//
+// ApplicationController.m
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import "ApplicationController.h"
+
+
+@implementation ApplicationController
+
+-(IBAction) showPreferenceController:(id)sender
+{
+ if(!preferenceController){
+ preferenceController = [[PreferenceController alloc]init];
+ }
+ [preferenceController showWindow:self];
+}
+@end
View
29 oauth-sample-consumer-cocoa/English.lproj/Credits.rtf
@@ -0,0 +1,29 @@
+{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\paperw9840\paperh8400
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
+
+\f0\b\fs24 \cf0 Engineering:
+\b0 \
+ Some people\
+\
+
+\b Human Interface Design:
+\b0 \
+ Some other people\
+\
+
+\b Testing:
+\b0 \
+ Hopefully not nobody\
+\
+
+\b Documentation:
+\b0 \
+ Whoever\
+\
+
+\b With special thanks to:
+\b0 \
+ Mom\
+}
View
BIN  oauth-sample-consumer-cocoa/English.lproj/InfoPlist.strings
Binary file not shown
View
474 oauth-sample-consumer-cocoa/English.lproj/MainMenu.xib
@@ -0,0 +1,474 @@
+<?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="57"/>
+ </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="1048">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSCustomObject" id="1021">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSCustomObject" id="1014">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1050">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSMenu" id="649796088">
+ <string key="NSTitle">AMainMenu</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="694149608">
+ <reference key="NSMenu" ref="649796088"/>
+ <string key="NSTitle">OAuth Test Client</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <object class="NSCustomResource" key="NSOnImage" id="1033313550">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuCheckmark</string>
+ </object>
+ <object class="NSCustomResource" key="NSMixedImage" id="310636482">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuMixedState</string>
+ </object>
+ <string key="NSAction">submenuAction:</string>
+ <object class="NSMenu" key="NSSubmenu" id="110575045">
+ <string key="NSTitle">NewApplication</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="609285721">
+ <reference key="NSMenu" ref="110575045"/>
+ <string type="base64-UTF8" key="NSTitle">UHJlZmVyZW5jZXPigKY</string>
+ <string key="NSKeyEquiv">,</string>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="481834944">
+ <reference key="NSMenu" ref="110575045"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="1046388886">
+ <reference key="NSMenu" ref="110575045"/>
+ <string key="NSTitle">Services</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ <string key="NSAction">submenuAction:</string>
+ <object class="NSMenu" key="NSSubmenu" id="752062318">
+ <string key="NSTitle">Services</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <string key="NSName">_NSServicesMenu</string>
+ </object>
+ </object>
+ <object class="NSMenuItem" id="646227648">
+ <reference key="NSMenu" ref="110575045"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="755159360">
+ <reference key="NSMenu" ref="110575045"/>
+ <string key="NSTitle">Hide NewApplication</string>
+ <string key="NSKeyEquiv">h</string>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="342932134">
+ <reference key="NSMenu" ref="110575045"/>
+ <string key="NSTitle">Hide Others</string>
+ <string key="NSKeyEquiv">h</string>
+ <int key="NSKeyEquivModMask">1572864</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="908899353">
+ <reference key="NSMenu" ref="110575045"/>
+ <string key="NSTitle">Show All</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="1056857174">
+ <reference key="NSMenu" ref="110575045"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="632727374">
+ <reference key="NSMenu" ref="110575045"/>
+ <string key="NSTitle">Quit OAuth Test Client</string>
+ <string key="NSKeyEquiv">q</string>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ </object>
+ <string key="NSName">_NSAppleMenu</string>
+ </object>
+ </object>
+ </object>
+ <string key="NSName">_NSMainMenu</string>
+ </object>
+ <object class="NSCustomObject" id="739804602">
+ <string key="NSClassName">NSFontManager</string>
+ </object>
+ <object class="NSCustomObject" id="917733515">
+ <string key="NSClassName">ApplicationController</string>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">hide:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="755159360"/>
+ </object>
+ <int key="connectionID">367</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">hideOtherApplications:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="342932134"/>
+ </object>
+ <int key="connectionID">368</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">unhideAllApplications:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="908899353"/>
+ </object>
+ <int key="connectionID">370</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">terminate:</string>
+ <reference key="source" ref="1050"/>
+ <reference key="destination" ref="632727374"/>
+ </object>
+ <int key="connectionID">448</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">showPreferenceController:</string>
+ <reference key="source" ref="917733515"/>
+ <reference key="destination" ref="609285721"/>
+ </object>
+ <int key="connectionID">451</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="1049">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="children" ref="1048"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1021"/>
+ <reference key="parent" ref="1049"/>
+ <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1014"/>
+ <reference key="parent" ref="1049"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1050"/>
+ <reference key="parent" ref="1049"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">29</int>
+ <reference key="object" ref="649796088"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="694149608"/>
+ </object>
+ <reference key="parent" ref="1049"/>
+ <string key="objectName">MainMenu</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">56</int>
+ <reference key="object" ref="694149608"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="110575045"/>
+ </object>
+ <reference key="parent" ref="649796088"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">57</int>
+ <reference key="object" ref="110575045"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="755159360"/>
+ <reference ref="908899353"/>
+ <reference ref="632727374"/>
+ <reference ref="646227648"/>
+ <reference ref="481834944"/>
+ <reference ref="1046388886"/>
+ <reference ref="1056857174"/>
+ <reference ref="342932134"/>
+ <reference ref="609285721"/>
+ </object>
+ <reference key="parent" ref="694149608"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">134</int>
+ <reference key="object" ref="755159360"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">150</int>
+ <reference key="object" ref="908899353"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">136</int>
+ <reference key="object" ref="632727374"/>
+ <reference key="parent" ref="110575045"/>
+ <string key="objectName">1111</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">144</int>
+ <reference key="object" ref="646227648"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">129</int>
+ <reference key="object" ref="609285721"/>
+ <reference key="parent" ref="110575045"/>
+ <string key="objectName">121</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">143</int>
+ <reference key="object" ref="481834944"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">131</int>
+ <reference key="object" ref="1046388886"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="752062318"/>
+ </object>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">149</int>
+ <reference key="object" ref="1056857174"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">145</int>
+ <reference key="object" ref="342932134"/>
+ <reference key="parent" ref="110575045"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">130</int>
+ <reference key="object" ref="752062318"/>
+ <reference key="parent" ref="1046388886"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">419</int>
+ <reference key="object" ref="739804602"/>
+ <reference key="parent" ref="1049"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">449</int>
+ <reference key="object" ref="917733515"/>
+ <reference key="parent" ref="1049"/>
+ <string key="objectName">ApplicationController</string>
+ </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>129.IBPluginDependency</string>
+ <string>129.ImportedFromIB2</string>
+ <string>130.IBPluginDependency</string>
+ <string>130.ImportedFromIB2</string>
+ <string>130.editorWindowContentRectSynchronizationRect</string>
+ <string>131.IBPluginDependency</string>
+ <string>131.ImportedFromIB2</string>
+ <string>134.IBPluginDependency</string>
+ <string>134.ImportedFromIB2</string>
+ <string>136.IBPluginDependency</string>
+ <string>136.ImportedFromIB2</string>
+ <string>143.IBPluginDependency</string>
+ <string>143.ImportedFromIB2</string>
+ <string>144.IBPluginDependency</string>
+ <string>144.ImportedFromIB2</string>
+ <string>145.IBPluginDependency</string>
+ <string>145.ImportedFromIB2</string>
+ <string>149.IBPluginDependency</string>
+ <string>149.ImportedFromIB2</string>
+ <string>150.IBPluginDependency</string>
+ <string>150.ImportedFromIB2</string>
+ <string>29.IBEditorWindowLastContentRect</string>
+ <string>29.IBPluginDependency</string>
+ <string>29.ImportedFromIB2</string>
+ <string>29.WindowOrigin</string>
+ <string>29.editorWindowContentRectSynchronizationRect</string>
+ <string>419.IBPluginDependency</string>
+ <string>449.IBPluginDependency</string>
+ <string>56.IBPluginDependency</string>
+ <string>56.ImportedFromIB2</string>
+ <string>57.IBEditorWindowLastContentRect</string>
+ <string>57.IBPluginDependency</string>
+ <string>57.ImportedFromIB2</string>
+ <string>57.editorWindowContentRectSynchronizationRect</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>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <integer value="1" id="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>{{436, 809}, {64, 6}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>{{316, 736}, {171, 20}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>{74, 862}</string>
+ <string>{{11, 977}, {478, 20}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>{{328, 583}, {247, 153}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="9"/>
+ <string>{{23, 794}, {245, 183}}</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">451</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">ApplicationController</string>
+ <string key="superclassName">NSObject</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">showPreferenceController:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">ApplicationController.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
269 oauth-sample-consumer-cocoa/English.lproj/MyDocument.xib
@@ -0,0 +1,269 @@
+<?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="100023"/>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <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="580458321">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSCustomObject" id="512844837">
+ <string key="NSClassName">MyDocument</string>
+ </object>
+ <object class="NSCustomObject" id="613418571">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSWindowTemplate" id="275939982">
+ <int key="NSWindowStyleMask">15</int>
+ <int key="NSWindowBacking">2</int>
+ <string key="NSWindowRect">{{133, 12}, {630, 636}}</string>
+ <int key="NSWTFlags">1886912512</int>
+ <string key="NSWindowTitle">Window</string>
+ <string key="NSWindowClass">NSWindow</string>
+ <string key="NSViewClass">View</string>
+ <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string>
+ <string key="NSWindowContentMinSize">{94, 86}</string>
+ <object class="NSView" key="NSWindowView" id="568628114">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">256</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSBox" id="766977174">
+ <reference key="NSNextResponder" ref="568628114"/>
+ <int key="NSvFlags">18</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSView" id="111986555">
+ <reference key="NSNextResponder" ref="766977174"/>
+ <int key="NSvFlags">256</int>
+ <string key="NSFrame">{{2, 2}, {616, 605}}</string>
+ <reference key="NSSuperview" ref="766977174"/>
+ </object>
+ </object>
+ <string key="NSFrame">{{4, 5}, {620, 625}}</string>
+ <reference key="NSSuperview" ref="568628114"/>
+ <string key="NSOffsets">{0, 0}</string>
+ <object class="NSTextFieldCell" key="NSTitleCell">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">0</int>
+ <string key="NSContents"/>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">1.100000e+01</double>
+ <int key="NSfFlags">3100</int>
+ </object>
+ <object class="NSColor" key="NSBackgroundColor">
+ <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">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MCAwLjgwMDAwMDAxAA</bytes>
+ </object>
+ </object>
+ <reference key="NSContentView" ref="111986555"/>
+ <int key="NSBorderType">3</int>
+ <int key="NSBoxType">0</int>
+ <int key="NSTitlePosition">3</int>
+ <bool key="NSTransparent">NO</bool>
+ <real value="0.000000e+00" key="NSBorderWidth2"/>
+ </object>
+ </object>
+ <string key="NSFrameSize">{630, 636}</string>
+ <reference key="NSSuperview"/>
+ </object>
+ <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
+ <string key="NSMinSize">{94, 108}</string>
+ <string key="NSMaxSize">{3.40282e+38, 3.40282e+38}</string>
+ </object>
+ <object class="NSCustomObject" id="796877042">
+ <string key="NSClassName">NSApplication</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">delegate</string>
+ <reference key="source" ref="275939982"/>
+ <reference key="destination" ref="512844837"/>
+ </object>
+ <int key="connectionID">17</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="275939982"/>
+ </object>
+ <int key="connectionID">18</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">box</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="766977174"/>
+ </object>
+ <int key="connectionID">100024</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="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="children" ref="580458321"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="512844837"/>
+ <reference key="parent" ref="0"/>
+ <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="613418571"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="275939982"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="568628114"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Window</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="568628114"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="766977174"/>
+ </object>
+ <reference key="parent" ref="275939982"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="796877042"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100023</int>
+ <reference key="object" ref="766977174"/>
+ <reference key="parent" ref="568628114"/>
+ </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>100023.IBPluginDependency</string>
+ <string>5.IBEditorWindowLastContentRect</string>
+ <string>5.IBWindowTemplateEditedContentRect</string>
+ <string>5.ImportedFromIB2</string>
+ <string>5.editorWindowContentRectSynchronizationRect</string>
+ <string>5.windowTemplate.hasMinSize</string>
+ <string>5.windowTemplate.minSize</string>
+ <string>6.IBPluginDependency</string>
+ <string>6.ImportedFromIB2</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <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>{{243, 120}, {630, 636}}</string>
+ <string>{{243, 120}, {630, 636}}</string>
+ <integer value="1" id="5"/>
+ <string>{{201, 387}, {507, 413}}</string>
+ <reference ref="5"/>
+ <string>{94, 86}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <reference ref="5"/>
+ </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">100024</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">MyDocument</string>
+ <string key="superclassName">NSPersistentDocument</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">changeViewController:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">box</string>
+ <string key="NS.object.0">NSBox</string>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">MyDocument.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
49 oauth-sample-consumer-cocoa/Info.plist
@@ -0,0 +1,49 @@
+<?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>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>????</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string></string>
+ <key>CFBundleTypeName</key>
+ <string>DocumentType</string>
+ <key>CFBundleTypeOSTypes</key>
+ <array>
+ <string>????</string>
+ </array>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>NSDocumentClass</key>
+ <string>MyDocument</string>
+ </dict>
+ </array>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:identifier}</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>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
View
25 oauth-sample-consumer-cocoa/ManagingViewController.h
@@ -0,0 +1,25 @@
+//
+// ManagingViewController.h
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "ViewParent.h"
+extern NSString * const OACConsumerKey;
+extern NSString * const OACConsumerSecret;
+extern NSString * const OACRequestTokenKey;
+extern NSString * const OACRequestTokenSecret;
+
+@interface ManagingViewController : NSViewController {
+ NSManagedObjectContext *managedObjectContext;
+ id<ViewParent> parent;
+}
+@property (retain) NSManagedObjectContext *managedObjectContext;
+@property (retain) id<ViewParent> parent;
+
+@end
+
+
View
23 oauth-sample-consumer-cocoa/ManagingViewController.m
@@ -0,0 +1,23 @@
+//
+// ManagingViewController.m
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright 2009 Xero.com. All rights reserved.
+//
+
+#import "ManagingViewController.h"
+NSString * const OACConsumerKey = @"ConsumerKey";
+NSString * const OACConsumerSecret = @"ConsumerSecret";
+NSString * const OACRequestTokenKey = @"RequestTokenKey";
+NSString * const OACRequestTokenSecret = @"RequestTokenSecret";
+
+@implementation ManagingViewController
+@synthesize managedObjectContext;
+@synthesize parent;
+-(void) dealloc
+{
+ [managedObjectContext release];
+ [super dealloc];
+}
+@end
View
21 oauth-sample-consumer-cocoa/MyDocument.h
@@ -0,0 +1,21 @@
+//
+// MyDocument.h
+// oauth-sample-consumer
+//
+// Created by Owen Evans on 20/02/2009.
+// Copyright Xero.com 2009 . All rights reserved.
+//
+
+
+#import <Cocoa/Cocoa.h>