Permalink
Browse files

More Pachube to Cosm renaming

  • Loading branch information...
1 parent 855c72e commit 45f9003f5d74c7a68d728e6cc383ca1002210202 @levent committed Jun 6, 2012
View
@@ -13,4 +13,4 @@ build/
xcuserdata
-PachubeAppCredentials.h
+CosmAppCredentials.h
@@ -45,6 +45,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 2B3EF746157F91F200571280 /* CosmAppCredentials.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CosmAppCredentials.h; sourceTree = "<group>"; };
2B4D8A0E14E969900059CD3B /* Feed.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Feed.h; sourceTree = "<group>"; };
2B4D8A0F14E969900059CD3B /* Feed.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Feed.m; sourceTree = "<group>"; };
2B4D8A1014E969900059CD3B /* FeedDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeedDelegate.h; sourceTree = "<group>"; };
@@ -76,7 +77,6 @@
2B4D8A3014E96BDE0059CD3B /* SBJsonWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBJsonWriter.m; sourceTree = "<group>"; };
2B4D8A3C14E96BF70059CD3B /* NSObject+SBJson.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+SBJson.h"; sourceTree = "<group>"; };
2B4D8A3D14E96BF70059CD3B /* NSObject+SBJson.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+SBJson.m"; sourceTree = "<group>"; };
- 2B4D8A3F14E96C3F0059CD3B /* PachubeAppCredentials.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PachubeAppCredentials.h; sourceTree = "<group>"; };
2B4D8A4014E9724D0059CD3B /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
2BC1837714EA6B9F00A8D86F /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = "<group>"; };
2BC1837914EA6BF100A8D86F /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon@2x.png"; sourceTree = "<group>"; };
@@ -248,7 +248,7 @@
2BE7191814DC3F8B00B530FC /* Supporting Files */ = {
isa = PBXGroup;
children = (
- 2B4D8A3F14E96C3F0059CD3B /* PachubeAppCredentials.h */,
+ 2B3EF746157F91F200571280 /* CosmAppCredentials.h */,
2BE7191914DC3F8B00B530FC /* IoT Sound Level-Info.plist */,
2BE7191A14DC3F8B00B530FC /* InfoPlist.strings */,
2BE7191D14DC3F8B00B530FC /* main.m */,
@@ -1,5 +1,5 @@
//
-// PachubeAppCredentials.h
+// CosmAppCredentials.h
// IoTally
//
// Created by Levent Ali on 09/02/2012.
@@ -1,5 +1,5 @@
//
-// PachubeAppCredentials-Sample.h
+// CosmAppCredentials-Sample.h
// IoTally
//
// Created by Levent Ali on 09/02/2012.
@@ -20,7 +20,7 @@
}
@property (nonatomic, retain) IBOutlet UIWebView *webView;
-- (NSURLRequest *)authenticateOnPachube;
+- (NSURLRequest *)authenticateOnCosm;
- (void)verifyWithCode:(NSString *)accessCode;
- (void)extractApiKey:(NSString *)responseString;
- (void)createFeed;
@@ -8,7 +8,7 @@
#import "OAuthRequestController.h"
-#import "PachubeAppCredentials.h"
+#import "CosmAppCredentials.h"
@implementation OAuthRequestController
@@ -45,7 +45,7 @@ - (void)viewDidAppear:(BOOL)animated
{
self.webView.delegate = self;
self.webView.scalesPageToFit = YES;
- [self.webView loadRequest:[self authenticateOnPachube]];
+ [self.webView loadRequest:[self authenticateOnCosm]];
}
- (void)viewDidUnload
@@ -66,7 +66,7 @@ - (IBAction)close:(id)sender {
[self dismissModalViewControllerAnimated:YES];
}
-- (NSURLRequest *)authenticateOnPachube {
+- (NSURLRequest *)authenticateOnCosm {
NSURL *fullURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/oauth/authenticate?client_id=%@", kPBsiteEndpoint, kPBoAuthAppId]];
NSMutableURLRequest *authRequest = [NSMutableURLRequest requestWithURL:fullURL];
[authRequest setHTTPMethod:@"GET"];
@@ -9,7 +9,7 @@
#import "SettingsViewController.h"
#import "OAuthRequestController.h"
-#import "PachubeAppCredentials.h"
+#import "CosmAppCredentials.h"
@implementation SettingsViewController
@@ -56,15 +56,15 @@ - (void)viewDidAppear:(BOOL)animated
[super viewDidAppear:animated];
[self loadSettings];
if (myFeed.apiKey == nil || myFeed.feedId == nil) {
- [infoField setText:@"Please login to Pachube"];
+ [infoField setText:@"Please login to Cosm"];
[feedIdField setEnabled:NO];
[saveButton setHidden:YES];
[loginButton setHidden:NO];
[saveButton setTitle:@"Login" forState:UIControlStateNormal];
}
else
{
- [infoField setText:@"Recording to Pachube feed"];
+ [infoField setText:@"Recording to Cosm feed"];
[feedIdField setEnabled:YES];
[saveButton setHidden:NO];
[loginButton setHidden:YES];
@@ -6,7 +6,7 @@
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
-#import "PachubeAppCredentials.h"
+#import "CosmAppCredentials.h"
#import "SoundLevelViewController.h"
#import "OAuthRequestController.h"
View
@@ -1,4 +1,4 @@
-### Pachube Powered Sound Level App
+### Cosm Powered Sound Level App
Based on this tutorial for sampling microphone input:
http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/

0 comments on commit 45f9003

Please sign in to comment.