--- /dev/null
+{
+ IBClasses = (
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ CLASS = ITAboutBox;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ "_appIcon" = NSImageView;
+ "_appName" = NSTextField;
+ "_companySite" = NSTextField;
+ "_copyright" = NSTextField;
+ "_window" = NSWindow;
+ };
+ SUPERCLASS = NSObject;
+ },
+ {CLASS = ITURLTextField; LANGUAGE = ObjC; SUPERCLASS = NSTextField; }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBDocumentLocation</key>
+ <string>40 60 356 240 0 0 1152 746 </string>
+ <key>IBFramework Version</key>
+ <string>439.0</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>5</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>8C46</string>
+</dict>
+</plist>
--- /dev/null
+//
+// ITAboutBox.h
+// ITKit
+//
+// Created by Kent Sutherland on 8/4/05.
+// Copyright 2005 __MyCompanyName__. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@class ITURLTextField;
+
+@interface ITAboutBox : NSObject
+{
+ IBOutlet NSImageView *_appIcon;
+ IBOutlet NSTextField *_appName;
+ IBOutlet ITURLTextField *_companySite;
+ IBOutlet NSTextField *_copyright;
+ IBOutlet NSWindow *_window;
+}
++ (ITAboutBox *)sharedController;
+
+- (void)setupAboutBox;
+- (void)showAboutBox;
+- (BOOL)isVisible;
+@end
--- /dev/null
+//
+// ITAboutBox.m
+// ITKit
+//
+// Created by Kent Sutherland on 8/4/05.
+// Copyright 2005 __MyCompanyName__. All rights reserved.
+//
+
+#import "ITAboutBox.h"
+#import "ITURLTextField.h"
+
+static ITAboutBox *_sharedController;
+
+@implementation ITAboutBox
+
++ (ITAboutBox *)sharedController
+{
+ if (!_sharedController) {
+ _sharedController = [[ITAboutBox alloc] init];
+ }
+ return _sharedController;
+}
+
+- (id)init
+{
+ if ( (self = [super init]) ) {
+ [NSBundle loadNibNamed:@"AboutBox" owner:self];
+ }
+ return self;
+}
+
+- (void)setupAboutBox
+{
+ [_appIcon setImage:[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIconFile"]]] autorelease]];
+
+ [_appName setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"CFBundleShortVersionString" value:@"" table:@"InfoPlist"]];
+ [_companySite setStringValue:@"http://www.ithinksw.com/"];
+ [_companySite setURL:[NSURL URLWithString:@"http://www.ithinksw.com/"]];
+ [_copyright setStringValue:[[NSBundle mainBundle] localizedStringForKey:@"NSHumanReadableCopyright" value:@"" table:@"InfoPlist"]];
+}
+
+- (void)showAboutBox
+{
+ [self setupAboutBox];
+
+ [_window center];
+ [NSApp activateIgnoringOtherApps:YES];
+ [_window orderFrontRegardless];
+ [_window makeKeyWindow];
+}
+
+- (BOOL)isVisible
+{
+ return [_window isVisible];
+}
+
+@end
#import <ITKit/ITSplashScreen.h>
+#import <ITKit/ITAboutBox.h>
+#import <ITKit/ITURLTextField.h>
+
#import <ITKit/ITCategory-NSView.h>
#import <ITKit/ITCategory-NSMenu.h>
\ No newline at end of file
--- /dev/null
+/* ITURLTextField */
+
+#import <Cocoa/Cocoa.h>
+
+@interface ITURLTextField : NSTextField
+{
+ NSURL *_url;
+}
+- (void)setURL:(NSURL *)url;
+@end
--- /dev/null
+#import "ITURLTextField.h"
+
+@implementation ITURLTextField
+
+- (void)dealloc
+{
+ [_url release];
+ [super dealloc];
+}
+
+/*- (void)mouseEntered:(NSEvent *)event
+{
+ NSLog(@"grr");
+ [[NSCursor pointingHandCursor] set];
+ [super mouseEntered:event];
+}
+
+- (void)mouseExited:(NSEvent *)event
+{
+ [[NSCursor arrowCursor] set];
+ [super mouseExited:event];
+}*/
+
+- (void)setURL:(NSURL *)url
+{
+ [_url release];
+ _url = [url retain];
+
+ //Make an attributed string for the main stringValue now
+// NSAttributedString *string = [[NSAttributedString alloc] initWithString:[self stringValue] attributes:];
+}
+
+@end