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