Add bad version of NovaTools. Unhappy about good version getting accidentally deleted without a backup.

This commit is contained in:
Nicholas Shanks 2002-04-14 14:02:56 +00:00
parent 1a097728c9
commit 23315ffb51
16 changed files with 163 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{
IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
IBVersion = 1;
}

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>IBDocumentLocation</key>
<string>411 212 356 240 0 0 1152 848 </string>
<key>IBEditorPositions</key>
<dict>
<key>5</key>
<string>411 457 72 66 0 0 1152 848 </string>
</dict>
<key>IBFramework Version</key>
<string>248.0</string>
<key>IBSystem Version</key>
<string>5Q110</string>
</dict>
</plist>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
#import <Cocoa/Cocoa.h>
#import "ResKnifePluginProtocol.h"
#import "ResKnifeResourceProtocol.h"
@interface NovaWindowController : NSWindowController <ResKnifePluginProtocol>
{
id <ResKnifeResourceProtocol> resource;
}
@end

View File

@ -0,0 +1,60 @@
#import "NovaWindowController.h"
#import "BoomWindowController.h"
#import "CharWindowController.h"
#import "ColrWindowController.h"
#import "CronWindowController.h"
#import "DescWindowController.h"
@implementation NovaWindowController
- (id)initWithResource:(id)newResource
{
NSString *asciiType = NSLocalizedStringFromTable( [resource type], @"Resource Types", nil );
resource = [newResource retain];
NSLog( @"%s", [[resource type] lossyCString] );
NSLog( [[[resource type] dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES] description] );
if( [asciiType isEqualToString:@"boom"] )
{
id oldSelf = self;
self = [[BoomWindowController alloc] initWithResource:newResource];
[oldSelf release];
}
if( [asciiType isEqualToString:@"char"] )
{
id oldSelf = self;
self = [[CharWindowController alloc] initWithResource:newResource];
[oldSelf release];
}
if( [asciiType isEqualToString:@"colr"] )
{
id oldSelf = self;
self = [[ColrWindowController alloc] initWithResource:newResource];
[oldSelf release];
}
if( [asciiType isEqualToString:@"cron"] )
{
id oldSelf = self;
self = [[CronWindowController alloc] initWithResource:newResource];
[oldSelf release];
}
if( [asciiType isEqualToString:@"desc"] )
{
id oldSelf = self;
self = [[DescWindowController alloc] initWithResource:newResource];
[oldSelf release];
}
if( !self ) return nil;
// do global stuff here
return self;
}
- (id)initWithResources:(id)newResource, ...
{
return nil;
}
@end

View File

@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
#import "NovaWindowController.h"
@interface BoomWindowController : NovaWindowController
{
}
@end

View File

@ -0,0 +1,17 @@
#import "BoomWindowController.h"
@implementation BoomWindowController
- (id)initWithResource:(id)newResource
{
self = [self initWithWindowNibName:@"boom"];
if( !self ) return self;
// load the window from the nib file and set it's title
[self window]; // implicitly loads nib
if( ![[resource name] isEqualToString:@""] )
[[self window] setTitle:[NSString stringWithFormat:@"Explosion: %@", [resource name]]];
return self;
}
@end

View File

@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
#import "NovaWindowController.h"
@interface CharWindowController : NovaWindowController
{
}
@end

View File

@ -0,0 +1,5 @@
#import "CharWindowController.h"
@implementation CharWindowController
@end

View File

@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
#import "NovaWindowController.h"
@interface ColrWindowController : NovaWindowController
{
}
@end

View File

@ -0,0 +1,5 @@
#import "ColrWindowController.h"
@implementation ColrWindowController
@end

View File

@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
#import "NovaWindowController.h"
@interface CronWindowController : NovaWindowController
{
}
@end

View File

@ -0,0 +1,5 @@
#import "CronWindowController.h"
@implementation CronWindowController
@end

View File

@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
#import "NovaWindowController.h"
@interface DescWindowController : NovaWindowController
{
}
@end

View File

@ -0,0 +1,5 @@
#import "DescWindowController.h"
@implementation DescWindowController
@end