Access Preferences through its protocol, since the launcher is in the Framework.

This commit is contained in:
Riccardo Mottola 2020-09-08 17:43:31 +02:00
parent 654aca86ef
commit 334bfd1f37
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2020-09-08 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectLauncher.m
Access Preferences through its protocol, since the launcher is in the
Framework.
2020-04-16 Riccardo Mottola <rm@gnu.org>
* Modules/Editors/ProjectCenter/PCEditorView.m:(drawRect:)

View file

@ -33,11 +33,12 @@
#import <ProjectCenter/PCBundleManager.h>
#import <ProjectCenter/PCButton.h>
#import <ProjectCenter/PCLogController.h>
#import <Protocols/Preferences.h>
#import "Modules/Preferences/Misc/PCMiscPrefs.h"
#import "Modules/Preferences/EditorFSC/PCEditorFSCPrefs.h"
#import "PCPrefController.h"
#ifndef NOTIFICATION_CENTER
#define NOTIFICATION_CENTER [NSNotificationCenter defaultCenter]
@ -148,7 +149,7 @@ enum {
if ((self = [super init]))
{
PCPrefController *prefs = [PCPrefController sharedPCPreferences];
id <PCPreferences> prefs = [[project projectManager] prefController];
NSFont *font;
NSString *fontName;
CGFloat fontSize;