git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrading ITKit to Xcode 2.1 and fixing problems with
[ITKit.git]
/
ITAboutWindowController.m
diff --git
a/ITAboutBox.m
b/ITAboutWindowController.m
similarity index 66%
rename from
ITAboutBox.m
rename to
ITAboutWindowController.m
index
2b8e05d
..
cea9a78
100644
(file)
--- a/
ITAboutBox.m
+++ b/
ITAboutWindowController.m
@@
-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) {
{
if (!_sharedController) {
- _sharedController = [[ITAbout
Box
alloc] init];
+ _sharedController = [[ITAbout
WindowController
alloc] init];
}
return _sharedController;
}
}
return _sharedController;
}
@@
-23,12
+15,12
@@
static ITAboutBox *_sharedController;
- (id)init
{
if ( (self = [super init]) ) {
- (id)init
{
if ( (self = [super init]) ) {
- [NSBundle loadNibNamed:@"
AboutBox
" owner:self];
+ [NSBundle loadNibNamed:@"
ITAboutWindow
" owner:self];
}
return self;
}
}
return self;
}
-- (void)setupAbout
Box
+- (void)setupAbout
Window
{
[_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
{
[_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"]];
}
[_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
}
-- (void)showAbout
Box
+- (void)showAbout
Window
{
{
- [self setupAbout
Box
];
+ [self setupAbout
Window
];
[_window center];
[NSApp activateIgnoringOtherApps:YES];
[_window center];
[NSApp activateIgnoringOtherApps:YES];
@@
-53,4
+45,4
@@
static ITAboutBox *_sharedController;
return [_window isVisible];
}
return [_window isVisible];
}
-@end
+@end
\ No newline at end of file