2006-09-04 18:06:23 +00:00
|
|
|
//
|
|
|
|
// PreferencesController.m
|
|
|
|
// Cog
|
|
|
|
//
|
2006-09-04 18:46:18 +00:00
|
|
|
// Created by Vincent Spader on 9/4/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
2006-09-04 18:06:23 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "PreferencesController.h"
|
|
|
|
|
|
|
|
|
|
|
|
@implementation PreferencesController
|
|
|
|
|
|
|
|
- (IBAction)showPrefs:(id)sender
|
|
|
|
{
|
|
|
|
if (!prefs) {
|
|
|
|
// Determine path to the sample preference panes
|
|
|
|
NSString *pathToPanes = [[NSBundle mainBundle] resourcePath];
|
|
|
|
|
|
|
|
prefs = [[SS_PrefsController alloc] initWithPanesSearchPath:pathToPanes bundleExtension:@"preferencePane"];
|
|
|
|
[prefs setDebug:YES];
|
|
|
|
|
|
|
|
// Set which panes are included, and their order.
|
2006-09-10 21:27:20 +00:00
|
|
|
//[prefs setPanesOrder:[NSArray arrayWithObjects:@"General", @"Updating", @"A Non-Existent Preference Pane", nil]];
|
2006-09-04 18:06:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Show the preferences window.
|
|
|
|
[prefs showPreferencesWindow];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)dealloc
|
|
|
|
{
|
|
|
|
[prefs release];
|
|
|
|
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|