Skip to content

Commit

Permalink
Improve comments language about defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Calderolla committed May 4, 2014
1 parent cc8ebc2 commit e4f78a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CTCAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
@implementation CTCAppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Create preferences and set default values
// Set default values for defaults
[CTCDefaults setDefaultDefaults];
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Save preferences
// Save defaults
[CTCDefaults save];
}

Expand Down
3 changes: 1 addition & 2 deletions CTCDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ + (void)setDefaultDefaults {
NSString *defaultDownloadsDirectory = CTCFileUtils.userDownloadsDirectory ?: CTCFileUtils.userHomeDirectory;
NSLog(@"Default downloads directory is %@", defaultDownloadsDirectory);

// Set smart defaults for the preferences
// Set smart default defaults
NSDictionary *appDefaults = @{kCTCDefaultsFeedURLKey: @"",
kCTCDefaultsOnlyUpdateBetweenKey: @NO,
kCTCDefaultsUpdateFromKey: dateFrom,
Expand Down Expand Up @@ -83,7 +83,6 @@ + (void)setDefaultDefaults {
}

+ (void)save {
// Write preferences to disk
[NSUserDefaults.standardUserDefaults synchronize];

// Register as a login item if needed
Expand Down
1 change: 0 additions & 1 deletion CTCPreferencesController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ - (void)showWindow:(id)sender {
}

- (IBAction)savePreferences:(id)sender {
// Save preferences
[CTCDefaults save];

// If the feed URL is invalid, just warn user
Expand Down

0 comments on commit e4f78a5

Please sign in to comment.