58 lines
726 B
Mathematica
58 lines
726 B
Mathematica
|
//
|
||
|
// PreferencePane.m
|
||
|
// Preferences
|
||
|
//
|
||
|
// Created by Zaphod Beeblebrox on 9/4/06.
|
||
|
// Copyright 2006 __MyCompanyName__. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "PreferencePane.h"
|
||
|
|
||
|
|
||
|
@implementation PreferencePane
|
||
|
|
||
|
- (NSView *)paneView
|
||
|
{
|
||
|
return view;
|
||
|
}
|
||
|
|
||
|
- (NSString *)paneName
|
||
|
{
|
||
|
return name;
|
||
|
}
|
||
|
|
||
|
- (NSImage *)paneIcon
|
||
|
{
|
||
|
return icon;
|
||
|
}
|
||
|
|
||
|
- (NSString *)paneToolTip
|
||
|
{
|
||
|
return nil;
|
||
|
}
|
||
|
|
||
|
- (BOOL)allowsHorizontalResizing
|
||
|
{
|
||
|
return NO;
|
||
|
}
|
||
|
|
||
|
- (BOOL)allowsVerticalResizing
|
||
|
{
|
||
|
return NO;
|
||
|
}
|
||
|
|
||
|
- (void)setName:(NSString *)s
|
||
|
{
|
||
|
[s retain];
|
||
|
[name release];
|
||
|
name = s;
|
||
|
}
|
||
|
|
||
|
- (void)setIcon:(NSString *)i
|
||
|
{
|
||
|
[icon release];
|
||
|
icon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:i]];
|
||
|
}
|
||
|
|
||
|
@end
|