/**
PKPreferencesController Description
*/ @implementation PKPreferencesController static PKPreferencesController *sharedInstance = nil; /**Factory method which returns a singleton instance.
*/ + (PKPreferencesController *) sharedPreferencesController { if (sharedInstance == nil) { sharedInstance = [[PKPreferencesController alloc] init]; } return sharedInstance; } - (id) init { self = [super init]; ASSIGN(registry, [PKPreferencePaneRegistry sharedRegistry]); [(PKPreferencePaneRegistry *)registry loadAllPlugins]; sharedInstance = self; return self; } /* Initialize stuff that can't be set in the nib/gorm file. */ - (void) awakeFromNib { if ([owner isKindOfClass: [NSWindow class]]) { /* Let the system keep track of where it belongs */ [owner setFrameAutosaveName: @"PreferencesMainWindow"]; [owner setFrameUsingName: @"PreferencesMainWindow"]; } [super awakeFromNib]; } @end