ResKnife/NovaTools/colr/ColrWindowController.m

18 lines
485 B
Mathematica
Raw Normal View History

#import "ColrWindowController.h"
@implementation ColrWindowController
2002-04-27 18:17:47 +00:00
- (id)initWithResource:(id)newResource
{
self = [self initWithWindowNibName:@"colr"];
if( !self ) return nil;
// load the window from the nib file and set it's title
[self window]; // implicitly loads nib
if( [newResource name] && ![[newResource name] isEqualToString:@""] )
[[self window] setTitle:[NSString stringWithFormat:@"%@: %@", [[self window] title], [newResource name]]];
return self;
}
@end