mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-11-19 10:31:23 +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
|