5 // Created by Kent Sutherland on 8/4/05.
6 // Copyright 2005 __MyCompanyName__. All rights reserved.
10 #import "ITURLTextField.h"
12 static ITAboutBox *_sharedController;
14 @implementation ITAboutBox
16 + (ITAboutBox *)sharedController
18 if (!_sharedController) {
19 _sharedController = [[ITAboutBox alloc] init];
21 return _sharedController;
26 if ( (self = [super init]) ) {
27 [NSBundle loadNibNamed:@"AboutBox" owner:self];
34 [_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
36 [_appName setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"CFBundleShortVersionString" value:@"" table:@"InfoPlist"]];
37 [_companySite setStringValue:@"http://www.ithinksw.com/"];
38 [_companySite setURL:[NSURL URLWithString:@"http://www.ithinksw.com/"]];
39 [_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
47 [NSApp activateIgnoringOtherApps:YES];
48 [_window orderFrontRegardless];
49 [_window makeKeyWindow];
54 return [_window isVisible];