Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit ab9cb97962c4c2bb38baa85ec6dc568bfa35088e @Constantine-Fry committed Oct 11, 2010
Showing with 16,300 additions and 0 deletions.
  1. +11 −0 .gitignore
  2. +14 −0 Classes/RootViewController.h
  3. +141 −0 Classes/RootViewController.m
  4. +23 −0 Classes/SRCExampleAppDelegate.h
  5. +88 −0 Classes/SRCExampleAppDelegate.m
  6. +41 −0 Info.plist
  7. +297 −0 MainWindow.xib
  8. +214 −0 RootViewController.xib
  9. +945 −0 SRCExample.xcodeproj/project.pbxproj
  10. +8 −0 SRCExample_Prefix.pch
  11. +438 −0 SatisfactionRemoteComponent/Compose/DCComposeCommentView.xib
  12. +33 −0 SatisfactionRemoteComponent/Compose/DCComposeCommentViewController.h
  13. +216 −0 SatisfactionRemoteComponent/Compose/DCComposeCommentViewController.m
  14. +798 −0 SatisfactionRemoteComponent/Compose/DCComposeReplyView.xib
  15. +59 −0 SatisfactionRemoteComponent/Compose/DCComposeReplyViewController.h
  16. +313 −0 SatisfactionRemoteComponent/Compose/DCComposeReplyViewController.m
  17. +1,301 −0 SatisfactionRemoteComponent/Compose/DCComposeView.xib
  18. +92 −0 SatisfactionRemoteComponent/Compose/DCComposeViewController.h
  19. +552 −0 SatisfactionRemoteComponent/Compose/DCComposeViewController.m
  20. +24 −0 SatisfactionRemoteComponent/Compose/DCImageUploader.h
  21. +104 −0 SatisfactionRemoteComponent/Compose/DCImageUploader.m
  22. BIN SatisfactionRemoteComponent/Images/About Person/DC_about-button-on.png
  23. BIN SatisfactionRemoteComponent/Images/About Person/DC_about-button.png
  24. BIN SatisfactionRemoteComponent/Images/About Person/DC_login-background.png
  25. BIN SatisfactionRemoteComponent/Images/About Person/DC_login-button-on.png
  26. BIN SatisfactionRemoteComponent/Images/About Person/DC_login-button.png
  27. BIN SatisfactionRemoteComponent/Images/About Person/DC_login-instructions.png
  28. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-nav-background.png
  29. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-nav-corner-top-left.png
  30. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-nav-corner-top-right.png
  31. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-tab-bar-background.png
  32. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-tab-bar-corner-bottom-left.png
  33. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_blue-tab-bar-corner-bottom-right.png
  34. BIN SatisfactionRemoteComponent/Images/Custom Tab Bar/DC_search-bar-background.png
  35. BIN SatisfactionRemoteComponent/Images/Error/DC_error-sad-face.png
  36. BIN SatisfactionRemoteComponent/Images/Error/DC_error-try-again-button-on.png
  37. BIN SatisfactionRemoteComponent/Images/Error/DC_error-try-again-button.png
  38. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_plus.png
  39. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-comment-tab-body.png
  40. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-reply-tab-body.png
  41. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-reply-tab-photo.png
  42. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-background.png
  43. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-choose-photo-on.png
  44. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-choose-photo.png
  45. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-remove-photo-on.png
  46. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-remove-photo.png
  47. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-tab-body.png
  48. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-tab-photo.png
  49. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-tab-tags.png
  50. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-tab-type.png
  51. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-take-photo-on.png
  52. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-take-photo.png
  53. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-type-idea.png
  54. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-type-praise.png
  55. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-type-problem.png
  56. BIN SatisfactionRemoteComponent/Images/Start Topic/DC_start-topic-type-question.png
  57. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_bubble-arrow-blue.png
  58. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_bubble-arrow-gray.png
  59. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_bubble-arrow-green.png
  60. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_bubble-arrow-red.png
  61. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_bubble-arrow-yellow.png
  62. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-bottom-gradient.png
  63. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-button-middle.png
  64. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-idea.png
  65. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-praise.png
  66. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-problem.png
  67. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-question.png
  68. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-talk.png
  69. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-icon-update.png
  70. BIN SatisfactionRemoteComponent/Images/Topic HTML/DC_topic-top-gradient.png
  71. +550 −0 SatisfactionRemoteComponent/Images/Topic HTML/DC_topic.html
  72. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-idea.png
  73. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-praise.png
  74. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-problem.png
  75. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-question.png
  76. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-talk.png
  77. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_icon-update.png
  78. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-idea.png
  79. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-praise.png
  80. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-problem.png
  81. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-question.png
  82. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-talk.png
  83. BIN SatisfactionRemoteComponent/Images/Topic Icons/DC_selected-icon-update.png
  84. +922 −0 SatisfactionRemoteComponent/Main/DCInfoView.xib
  85. +19 −0 SatisfactionRemoteComponent/Main/DCInfoViewController.h
  86. +36 −0 SatisfactionRemoteComponent/Main/DCInfoViewController.m
  87. +423 −0 SatisfactionRemoteComponent/Main/DCLoginView.xib
  88. +45 −0 SatisfactionRemoteComponent/Main/DCLoginViewController.h
  89. +256 −0 SatisfactionRemoteComponent/Main/DCLoginViewController.m
  90. +22 −0 SatisfactionRemoteComponent/Main/DCOAuthParams.h
  91. +57 −0 SatisfactionRemoteComponent/Main/DCOAuthParams.m
  92. +380 −0 SatisfactionRemoteComponent/Main/DCSatisfactionRemoteView.xib
  93. +42 −0 SatisfactionRemoteComponent/Main/DCSatisfactionRemoteViewController.h
  94. +143 −0 SatisfactionRemoteComponent/Main/DCSatisfactionRemoteViewController.m
  95. +758 −0 SatisfactionRemoteComponent/Main/DCSearchableListView.xib
  96. +59 −0 SatisfactionRemoteComponent/Main/DCSearchableListViewController.h
  97. +380 −0 SatisfactionRemoteComponent/Main/DCSearchableListViewController.m
  98. +165 −0 SatisfactionRemoteComponent/Main/DCTopicView.xib
  99. +27 −0 SatisfactionRemoteComponent/Main/DCTopicViewController.h
  100. +230 −0 SatisfactionRemoteComponent/Main/DCTopicViewController.m
  101. +36 −0 SatisfactionRemoteComponent/Main/DCTopicsViewController.h
  102. +262 −0 SatisfactionRemoteComponent/Main/DCTopicsViewController.m
  103. +50 −0 SatisfactionRemoteComponent/Models/GSModelController.h
  104. +209 −0 SatisfactionRemoteComponent/Models/GSModelController.m
  105. +18 −0 SatisfactionRemoteComponent/Models/GSReplyController.h
  106. +22 −0 SatisfactionRemoteComponent/Models/GSReplyController.m
  107. +24 −0 SatisfactionRemoteComponent/Models/GSTopicController.h
  108. +54 −0 SatisfactionRemoteComponent/Models/GSTopicController.m
  109. +12 −0 SatisfactionRemoteComponent/SatisfactionRemoteComponentConstants.h
  110. +17 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomNavigationBar.h
  111. +51 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomNavigationBar.m
  112. +24 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomSearchBar.h
  113. +51 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomSearchBar.m
  114. +19 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomToolbar.h
  115. +27 −0 SatisfactionRemoteComponent/Utilities/Custom Tab Bar/DCCustomToolbar.m
  116. +162 −0 SatisfactionRemoteComponent/Utilities/DCPlaceholderView.xib
  117. +18 −0 SatisfactionRemoteComponent/Utilities/Fancy Dates/DCFancyDate.h
  118. +69 −0 SatisfactionRemoteComponent/Utilities/Fancy Dates/DCFancyDate.m
  119. +230 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/Base64Transcoder.c
  120. +36 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/Base64Transcoder.h
  121. +86 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/hmac.c
  122. +31 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/hmac.h
  123. +169 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/sha1.c
  124. +12 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/Crypto/sha1.h
  125. +37 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSMutableURLRequest+Parameters.h
  126. +113 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSMutableURLRequest+Parameters.m
  127. +35 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSString+URLEncoding.h
  128. +73 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSString+URLEncoding.m
  129. +34 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSURL+Base.h
  130. +37 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/NSURL+Base.m
  131. +63 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OACall.h
  132. +168 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OACall.m
  133. +42 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAConsumer.h
  134. +53 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAConsumer.m
  135. +44 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OADataFetcher.h
  136. +89 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OADataFetcher.m
  137. +32 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAHMAC_SHA1SignatureProvider.h
  138. +56 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAHMAC_SHA1SignatureProvider.m
  139. +65 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAMutableURLRequest.h
  140. +200 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAMutableURLRequest.m
  141. +31 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAPlaintextSignatureProvider.h
  142. +40 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAPlaintextSignatureProvider.m
  143. +53 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAProblem.h
  144. +165 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAProblem.m
  145. +48 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OARequestParameter.h
  146. +72 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OARequestParameter.m
  147. +46 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAServiceTicket.h
  148. +51 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAServiceTicket.m
  149. +34 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OASignatureProviding.h
  150. +37 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OATestServer.rb
  151. +72 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAToken.h
  152. +328 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAToken.m
  153. +68 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OATokenManager.h
  154. +400 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OATokenManager.m
  155. +40 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/OAuthConsumer.h
  156. +13 −0 SatisfactionRemoteComponent/Utilities/OAuthConsumer/README
  157. +68 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/CDataScanner.h
  158. +270 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/CDataScanner.m
  159. +37 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/CDataScanner_Extensions.h
  160. +80 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/CDataScanner_Extensions.m
  161. +36 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSCharacterSet_Extensions.h
  162. +48 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSCharacterSet_Extensions.m
  163. +36 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSDictionary_JSONExtensions.h
  164. +41 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSDictionary_JSONExtensions.m
  165. +44 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSScanner_Extensions.h
  166. +118 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/Extensions/NSScanner_Extensions.m
  167. +59 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONDeserializer.h
  168. +84 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONDeserializer.m
  169. +43 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONScanner.h
  170. +536 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONScanner.m
  171. +45 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONSerializer.h
  172. +184 −0 SatisfactionRemoteComponent/Utilities/TouchJSON/JSON/CJSONSerializer.m
  173. +17 −0 main.m
@@ -0,0 +1,11 @@
+# osx noise
+.DS_Store
+profile
+
+# xcode noise
+build/*
+*.pbxuser
+*.mode1v3
+
+.svn
+
@@ -0,0 +1,14 @@
+//
+// RootViewController.h
+// SRCExample
+//
+// Created by David on 2/27/09.
+// Copyright __MyCompanyName__ 2009. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface RootViewController : UIViewController {
+}
+
+@end
@@ -0,0 +1,141 @@
+//
+// RootViewController.m
+// SRCExample
+//
+// Created by David on 2/27/09.
+// Copyright __MyCompanyName__ 2009. All rights reserved.
+//
+
+#import "RootViewController.h"
+#import "SRCExampleAppDelegate.h"
+
+
+@implementation RootViewController
+
+/*
+- (void)viewDidLoad {
+ [super viewDidLoad];
+
+ // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
+ // self.navigationItem.rightBarButtonItem = self.editButtonItem;
+}
+*/
+
+/*
+- (void)viewWillAppear:(BOOL)animated {
+ [super viewWillAppear:animated];
+}
+*/
+/*
+- (void)viewDidAppear:(BOOL)animated {
+ [super viewDidAppear:animated];
+}
+*/
+/*
+- (void)viewWillDisappear:(BOOL)animated {
+ [super viewWillDisappear:animated];
+}
+*/
+/*
+- (void)viewDidDisappear:(BOOL)animated {
+ [super viewDidDisappear:animated];
+}
+*/
+
+/*
+// Override to allow orientations other than the default portrait orientation.
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+*/
+
+- (void)didReceiveMemoryWarning {
+ [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
+ // Release anything that's not essential, such as cached data
+}
+
+#pragma mark Table view methods
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+ return 1;
+}
+
+
+// Customize the number of rows in the table view.
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+ return 0;
+}
+
+
+// Customize the appearance of table view cells.
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+
+ static NSString *CellIdentifier = @"Cell";
+
+ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+ if (cell == nil) {
+ cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
+ }
+
+ // Set up the cell...
+
+ return cell;
+}
+
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+ // Navigation logic may go here. Create and push another view controller.
+ // AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
+ // [self.navigationController pushViewController:anotherViewController];
+ // [anotherViewController release];
+}
+
+
+/*
+// Override to support conditional editing of the table view.
+- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
+ // Return NO if you do not want the specified item to be editable.
+ return YES;
+}
+*/
+
+
+/*
+// Override to support editing the table view.
+- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
+
+ if (editingStyle == UITableViewCellEditingStyleDelete) {
+ // Delete the row from the data source
+ [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
+ }
+ else if (editingStyle == UITableViewCellEditingStyleInsert) {
+ // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
+ }
+}
+*/
+
+
+/*
+// Override to support rearranging the table view.
+- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
+}
+*/
+
+
+/*
+// Override to support conditional rearranging of the table view.
+- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
+ // Return NO if you do not want the item to be re-orderable.
+ return YES;
+}
+*/
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+@end
+
@@ -0,0 +1,23 @@
+//
+// SRCExampleAppDelegate.h
+// SRCExample
+//
+// Created by David on 2/27/09.
+// Copyright __MyCompanyName__ 2009. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface SRCExampleAppDelegate : NSObject <UIApplicationDelegate> {
+
+ UIWindow *window;
+ UINavigationController *navigationController;
+}
+
+@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
+
+- (IBAction)launchSatisfactionRemoteComponent:(id)sender;
+
+@end
+
@@ -0,0 +1,88 @@
+//
+// SRCExampleAppDelegate.m
+// SRCExample
+//
+// Created by David on 2/27/09.
+// Copyright __MyCompanyName__ 2009. All rights reserved.
+//
+
+#import "SRCExampleAppDelegate.h"
+#import "RootViewController.h"
+#import "DCSatisfactionRemoteViewController.h"
+
+@implementation SRCExampleAppDelegate
+
+@synthesize window;
+@synthesize navigationController;
+
+- (void)applicationDidFinishLaunching:(UIApplication *)application {
+
+ // Configure and show the window
+ [window addSubview:[navigationController view]];
+ [window makeKeyAndVisible];
+ [[NSNotificationCenter defaultCenter]addObserver:self
+ selector:@selector(dismiss)
+ name:kGO_TO_SAFARI_NOTIFICATION_NAME
+ object:nil];
+}
+
+
+- (void)applicationWillTerminate:(UIApplication *)application {
+ // Save data if appropriate
+}
+
+-(void)dismiss{
+ [[self navigationController] dismissModalViewControllerAnimated:YES];
+}
+
+- (IBAction)launchSatisfactionRemoteComponent:(id)sender {
+ /*
+ // Get Satisfaction OAuth Key & Secret
+ // * Register your app at http://getsatisfaction.com/me/extensions
+ //
+ // companyKey
+ // * Find it in your GSFN URL: http://getsatisfaction.com/[companyKey]
+ //
+ // companyName
+ // * Optional, but recommended. (displayed in the search bar)
+ //
+ // productId
+ // * Optional, used for browsing only one product.
+ // * Find it by going here and view source: http://api.getsatisfaction.com/companies/[companyKey]/products
+ //
+ // productName
+ // * Optional, but must match the product name on GSFN exactly (for posting topics to a product).
+ */
+
+
+ DCSatisfactionRemoteViewController *remoteViewController = [[DCSatisfactionRemoteViewController alloc]
+ initWithGetSatisfactionOAuthKey:@"3y3g8kddtwgi"
+ getSatisfactionOAuthSecret:@"utmgoq6sqk9mhstnm6pwhxmki2c5abg9"
+ companyKey:@"xmens"];
+ remoteViewController.companyName = @"xmens";
+ remoteViewController.productId = 60479;
+ remoteViewController.productName = @"Template";
+ if ([sender isKindOfClass:[NSURL class]]) {
+ remoteViewController.didReturnFromSafari = YES;
+ //((DCSatisfactionRemoteViewController*)[[TTNavigator navigator].rootViewController modalViewController]).didReturnFromSafari = YES ;
+ //return;
+ }
+ // see if we just returned from logging in via Safari
+
+ [[self navigationController] presentModalViewController:remoteViewController animated:YES];
+ [remoteViewController release];
+}
+
+- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
+ [self launchSatisfactionRemoteComponent:url];
+ return YES;
+}
+
+- (void)dealloc {
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+ [navigationController release];
+ [window release];
+ [super dealloc];
+}
+
+@end
@@ -0,0 +1,41 @@
+<?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>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <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>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string>MainWindow</string>
+ <key>CFBundleURLTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>template</string>
+ </array>
+ <key>CFBundleURLName</key>
+ <string>com.xmens.Template</string>
+ </dict>
+ </array>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit ab9cb97

Please sign in to comment.