mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-12-21 11:29:31 +00:00
18 lines
485 B
Objective-C
18 lines
485 B
Objective-C
#import "ColrWindowController.h"
|
|
|
|
@implementation ColrWindowController
|
|
|
|
- (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
|