equal
deleted
inserted
replaced
70 } |
70 } |
71 |
71 |
72 #pragma mark Settings |
72 #pragma mark Settings |
73 + (void)createSettings { |
73 + (void)createSettings { |
74 NSUserDefaults *settings = [NSUserDefaults standardUserDefaults]; |
74 NSUserDefaults *settings = [NSUserDefaults standardUserDefaults]; |
75 [settings setObject:[NSNumber numberWithBool:NO] forKey:@"alternate"]; |
75 |
76 [settings setObject:[NSNumber numberWithBool:YES] forKey:@"music"]; |
76 [settings setDefaultBool:NO forNonExistingKey:@"alternate"]; |
77 [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sound"]; |
77 [settings setDefaultBool:YES forNonExistingKey:@"music"]; |
78 [settings setObject:[NSNumber numberWithBool:YES] forKey:@"sync_ws"]; |
78 [settings setDefaultBool:YES forNonExistingKey:@"sound"]; |
|
79 [settings setDefaultBool:YES forNonExistingKey:@"sync_ws"]; |
79 |
80 |
80 // don't overwrite these two strings when present |
81 // don't overwrite these two strings when present |
81 if ([settings objectForKey:@"username"] == nil) |
82 [settings setDefaultValue:@"" forNonExistingKey:@"username"]; |
82 [settings setObject:@"" forKey:@"username"]; |
83 [settings setDefaultValue:@"" forNonExistingKey:@"password"]; |
83 if ([settings objectForKey:@"password"] == nil) |
|
84 [settings setObject:@"" forKey:@"password"]; |
|
85 |
84 |
86 [settings synchronize]; |
85 [settings synchronize]; |
87 } |
86 } |
88 |
87 |
89 #pragma mark Teams |
88 #pragma mark Teams |