Skip to content

Commit

Permalink
Forgot to use preference manager in MyDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
aki-null committed May 7, 2011
1 parent 44fb8e4 commit 830451c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions MyDocument.m
Expand Up @@ -8,6 +8,7 @@
#import "MyDocument.h"
#import "EditPaneLayoutManager.h"
#import "PreferencesController.h"
#import "PreferencesManager.h"
#include "discountWrapper.h"

NSString *kMarkdownDocumentType = @"MarkdownDocumentType";
Expand Down Expand Up @@ -47,11 +48,8 @@ - (void)dealloc {
}

- (void)updateFont {
NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
NSFont *currentFont = [NSFont fontWithName:[prefs stringForKey:@"EditPaneFontName"]
size:[prefs floatForKey:@"EditPaneFontSize"]];
layoutMan.font = currentFont;
[markdownSourceTextView setFont:currentFont];
layoutMan.font = [PreferencesManager editPanelFont];
[markdownSourceTextView setFont:layoutMan.font];
}

- (NSString *)windowNibName {
Expand Down

0 comments on commit 830451c

Please sign in to comment.