mirror of
https://github.com/nickshanks/ResKnife.git
synced 2025-01-08 06:29:27 +00:00
18 lines
442 B
Objective-C
18 lines
442 B
Objective-C
#import "BoomWindowController.h"
|
|
|
|
@implementation BoomWindowController
|
|
|
|
- (id)initWithResource:(id)newResource
|
|
{
|
|
self = [self initWithWindowNibName:@"boom"];
|
|
if( !self ) return self;
|
|
|
|
// load the window from the nib file and set it's title
|
|
[self window]; // implicitly loads nib
|
|
if( ![[resource name] isEqualToString:@""] )
|
|
[[self window] setTitle:[NSString stringWithFormat:@"Explosion: %@", [resource name]]];
|
|
return self;
|
|
}
|
|
|
|
@end
|