Upgrading ITKit to Xcode 2.1 and fixing problems with
[ITKit.git] / ITAboutWindowController.m
similarity index 66%
rename from ITAboutBox.m
rename to ITAboutWindowController.m
index 2b8e05d..cea9a78 100644 (file)
@@ -1,21 +1,13 @@
-//
-//  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;
 }
@@ -23,12 +15,12 @@ static ITAboutBox *_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]];
        
@@ -38,9 +30,9 @@ static ITAboutBox *_sharedController;
        [_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
 }
 
-- (void)showAboutBox
+- (void)showAboutWindow
 {
-       [self setupAboutBox];
+       [self setupAboutWindow];
        
        [_window center];
        [NSApp activateIgnoringOtherApps:YES];
@@ -53,4 +45,4 @@ static ITAboutBox *_sharedController;
        return [_window isVisible];
 }
 
-@end
+@end
\ No newline at end of file