The R Project SVN R-packages

Rev

Rev 1257 | Rev 5579 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1257 Rev 1459
Line 42... Line 42...
42
@implementation QuartzPrefPane
42
@implementation QuartzPrefPane
43
 
43
 
44
- (id)initWithIdentifier:(NSString *)theIdentifier label:(NSString *)theLabel category:(NSString *)theCategory
44
- (id)initWithIdentifier:(NSString *)theIdentifier label:(NSString *)theLabel category:(NSString *)theCategory
45
{
45
{
46
	if (self = [super init]) {
46
	if (self = [super init]) {
47
		[[Preferences sharedPreferences] addDependent:self];
-
 
48
		[self setIdentifier:theIdentifier];
47
		[self setIdentifier:theIdentifier];
49
		[self setLabel:theLabel];
48
		[self setLabel:theLabel];
50
		[self setCategory:theCategory];
49
		[self setCategory:theCategory];
51
		NSImage *theImage = [[NSImage imageNamed:@"quartzPP"] copy];
50
		NSImage *theImage = [[NSImage imageNamed:@"quartzPP"] copy];
52
		[theImage setFlipped:NO];
51
		[theImage setFlipped:NO];
Line 162... Line 161...
162
- (void)didUnselect
161
- (void)didUnselect
163
{}
162
{}
164
 
163
 
165
// QuartzPrefPane specific
164
// QuartzPrefPane specific
166
 
165
 
-
 
166
- (void) awakeFromNib
-
 
167
{
-
 
168
	[self updatePreferences];
-
 
169
	[[Preferences sharedPreferences] addDependent:self];
-
 
170
}
-
 
171
 
167
- (void) updatePreferences
172
- (void) updatePreferences
168
{
173
{
169
	[useQuartzPrefPaneSettings setEnabled:NSOnState];
174
	[useQuartzPrefPaneSettings setEnabled:NSOnState];
170
	BOOL flag=[Preferences flagForKey:useQuartzPrefPaneSettingsKey withDefault: NO];
175
	BOOL flag=[Preferences flagForKey:useQuartzPrefPaneSettingsKey withDefault: NO];
171
	[useQuartzPrefPaneSettings setState:(flag?NSOnState:NSOffState)];
176
	[useQuartzPrefPaneSettings setState:(flag?NSOnState:NSOffState)];