Permalink
Browse files

typos

  • Loading branch information...
1 parent 7b1536e commit e3406f28cef8ab59351303994fa77c6b5f1f15dc @sschroed committed Jan 17, 2009
Showing with 17 additions and 15 deletions.
  1. +17 −15 Classes/git_phoneAppDelegate.m
@@ -14,27 +14,14 @@
@interface git_phoneAppDelegate()
- (void) showError:(NSString *)errorMessage;
+- (void) loadPreferences;
@end
@implementation git_phoneAppDelegate
@synthesize window;
@synthesize navigationController;
-- (void) loadPreferencess {
- // read user prefs
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- [[Config instance] setGitHubUserName:[defaults stringForKey:@"GitHubUserName"]];
-
- DevLog2(@"username: %@", [[Config instance] gitHubUserName]);
-
- // Check if username is set
- if ([[Config instance] gitHubUserName] == NULL) {
- DevLog(@"NULL");
- } else {
- DevLog(@"NOT NULL");
- }
-}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
@@ -49,7 +36,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application {
return;
}
- [self loadPreferencess];
+ [self loadPreferences];
}
@@ -63,6 +50,21 @@ - (void) showError:(NSString *)errorMessage {
[[self window] addSubview:errorController.view];
}
+- (void) loadPreferences {
+ // read user prefs
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+ [[Config instance] setGitHubUserName:[defaults stringForKey:@"GitHubUserName"]];
+
+ DevLog2(@"username: %@", [[Config instance] gitHubUserName]);
+
+ // Check if username is set
+ if ([[Config instance] gitHubUserName] == NULL) {
+ DevLog(@"NULL");
+ } else {
+ DevLog(@"NOT NULL");
+ }
+}
+
- (void)dealloc {
[navigationController release];
[window release];

0 comments on commit e3406f2

Please sign in to comment.