From 40c15decb6fb497d6ef20af62b77e0e2db24139c Mon Sep 17 00:00:00 2001 From: Jeena Date: Tue, 21 Jan 2014 23:59:20 +0100 Subject: [PATCH] user defaults font size --- TextEd/Document.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextEd/Document.m b/TextEd/Document.m index 9f88652..c5be050 100644 --- a/TextEd/Document.m +++ b/TextEd/Document.m @@ -31,7 +31,7 @@ - (void)windowControllerDidLoadNib:(NSWindowController *)aController { [super windowControllerDidLoadNib:aController]; - [self.textView setFont:[NSFont userFixedPitchFontOfSize:16]]; + [self.textView setFont:[NSFont userFixedPitchFontOfSize:[[NSUserDefaults standardUserDefaults] integerForKey:@"fontSize"]]]; // Add any code here that needs to be executed once the windowController has loaded the document's window. }