-//
-// ITAboutBox.m
-// ITKit
-//
-// Created by Kent Sutherland on 8/4/05.
-// Copyright 2005 __MyCompanyName__. All rights reserved.
-//
+#import "ITAboutWindowController.h"
-#import "ITAboutBox.h"
+static ITAboutWindowController *_sharedController;
-static ITAboutBox *_sharedController;
+@implementation ITAboutWindowController
-@implementation ITAboutBox
-
-+ (ITAboutBox *)sharedController
++ (ITAboutWindowController *)sharedController
{
if (!_sharedController) {
- _sharedController = [[ITAboutBox alloc] init];
+ _sharedController = [[ITAboutWindowController alloc] init];
}
return _sharedController;
}
- (id)init
{
if ( (self = [super init]) ) {
- [NSBundle loadNibNamed:@"AboutBox" owner:self];
+ [NSBundle loadNibNamed:@"ITAboutWindow" owner:self];
}
return self;
}
-- (void)setupAboutBox
+- (void)setupAboutWindow
{
[_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
[_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
}
-- (void)showAboutBox
+- (void)showAboutWindow
{
- [self setupAboutBox];
+ [self setupAboutWindow];
[_window center];
[NSApp activateIgnoringOtherApps:YES];
return [_window isVisible];
}
-@end
+@end
\ No newline at end of file