1 #import "ITAboutWindowController.h"
3 static ITAboutWindowController *_sharedController;
5 @implementation ITAboutWindowController
7 + (ITAboutWindowController *)sharedController
9 if (!_sharedController) {
10 _sharedController = [[ITAboutWindowController alloc] init];
12 return _sharedController;
17 if ( (self = [super init]) ) {
18 [NSBundle loadNibNamed:@"ITAboutWindow" owner:self];
23 - (void)setupAboutWindow
25 [_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
27 [_appName setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"CFBundleShortVersionString" value:@"" table:@"InfoPlist"]];
28 [_companySite setStringValue:@"http://www.ithinksw.com/"];
30 [_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
33 - (void)showAboutWindow
35 [self setupAboutWindow];
38 [NSApp activateIgnoringOtherApps:YES];
39 [_window orderFrontRegardless];
40 [_window makeKeyWindow];
45 return [_window isVisible];