5 // Created by Kent Sutherland on 8/4/05.
6 // Copyright 2005 __MyCompanyName__. All rights reserved.
11 static ITAboutBox *_sharedController;
13 @implementation ITAboutBox
15 + (ITAboutBox *)sharedController
17 if (!_sharedController) {
18 _sharedController = [[ITAboutBox alloc] init];
20 return _sharedController;
25 if ( (self = [super init]) ) {
26 [NSBundle loadNibNamed:@"AboutBox" owner:self];
33 [_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
35 [_appName setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"CFBundleShortVersionString" value:@"" table:@"InfoPlist"]];
36 [_companySite setStringValue:@"http://www.ithinksw.com/"];
38 [_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
46 [NSApp activateIgnoringOtherApps:YES];
47 [_window orderFrontRegardless];
48 [_window makeKeyWindow];
53 return [_window isVisible];