Use Cocoa bindings for preferences panel
[MacVim.git] / src / MacVim / MMPreferenceController.m
blob1f3b9fcb6704f6e1e8e43a9ad758ea1954bf2b48
1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
2  *
3  * VIM - Vi IMproved            by Bram Moolenaar
4  *                              MacVim GUI port by Bjorn Winckler
5  *
6  * Do ":help uganda"  in Vim to read copying and usage conditions.
7  * Do ":help credits" in Vim to see a list of people who contributed.
8  * See README.txt for an overview of the Vim source code.
9  */
11 #import "MMPreferenceController.h"
12 #import "MacVim.h"
16 @implementation MMPreferenceController
18 + (MMPreferenceController *)sharedPreferenceController
20     static MMPreferenceController *singleton = nil;
21     if (!singleton)
22         singleton = [[MMPreferenceController alloc] init];
23     return singleton;
26 - (id)init
28     self = [super initWithWindowNibName:@"Preferences"];
29     if (!self) return nil;
31     [self setWindowFrameAutosaveName:@"Preferences"];
32     return self;
35 @end