mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-12-27 04:29:37 +00:00
Add bad version of NovaTools. Unhappy about good version getting accidentally deleted without a backup.
This commit is contained in:
parent
1a097728c9
commit
23315ffb51
4
NovaTools/English.lproj/NovaTools.nib/classes.nib
generated
Normal file
4
NovaTools/English.lproj/NovaTools.nib/classes.nib
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
|
||||||
|
IBVersion = 1;
|
||||||
|
}
|
17
NovaTools/English.lproj/NovaTools.nib/info.nib
generated
Normal file
17
NovaTools/English.lproj/NovaTools.nib/info.nib
generated
Normal 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>
|
BIN
NovaTools/English.lproj/NovaTools.nib/objects.nib
generated
Normal file
BIN
NovaTools/English.lproj/NovaTools.nib/objects.nib
generated
Normal file
Binary file not shown.
BIN
NovaTools/English.lproj/Resource Types.strings
Normal file
BIN
NovaTools/English.lproj/Resource Types.strings
Normal file
Binary file not shown.
10
NovaTools/NovaWindowController.h
Normal file
10
NovaTools/NovaWindowController.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
|
#import "ResKnifePluginProtocol.h"
|
||||||
|
#import "ResKnifeResourceProtocol.h"
|
||||||
|
|
||||||
|
@interface NovaWindowController : NSWindowController <ResKnifePluginProtocol>
|
||||||
|
{
|
||||||
|
id <ResKnifeResourceProtocol> resource;
|
||||||
|
}
|
||||||
|
@end
|
60
NovaTools/NovaWindowController.m
Normal file
60
NovaTools/NovaWindowController.m
Normal 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
|
7
NovaTools/boom/BoomWindowController.h
Normal file
7
NovaTools/boom/BoomWindowController.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "NovaWindowController.h"
|
||||||
|
|
||||||
|
@interface BoomWindowController : NovaWindowController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@end
|
17
NovaTools/boom/BoomWindowController.m
Normal file
17
NovaTools/boom/BoomWindowController.m
Normal 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
|
7
NovaTools/char/CharWindowController.h
Normal file
7
NovaTools/char/CharWindowController.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "NovaWindowController.h"
|
||||||
|
|
||||||
|
@interface CharWindowController : NovaWindowController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@end
|
5
NovaTools/char/CharWindowController.m
Normal file
5
NovaTools/char/CharWindowController.m
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import "CharWindowController.h"
|
||||||
|
|
||||||
|
@implementation CharWindowController
|
||||||
|
|
||||||
|
@end
|
7
NovaTools/colr/ColrWindowController.h
Normal file
7
NovaTools/colr/ColrWindowController.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "NovaWindowController.h"
|
||||||
|
|
||||||
|
@interface ColrWindowController : NovaWindowController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@end
|
5
NovaTools/colr/ColrWindowController.m
Normal file
5
NovaTools/colr/ColrWindowController.m
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import "ColrWindowController.h"
|
||||||
|
|
||||||
|
@implementation ColrWindowController
|
||||||
|
|
||||||
|
@end
|
7
NovaTools/cron/CronWindowController.h
Normal file
7
NovaTools/cron/CronWindowController.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "NovaWindowController.h"
|
||||||
|
|
||||||
|
@interface CronWindowController : NovaWindowController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@end
|
5
NovaTools/cron/CronWindowController.m
Normal file
5
NovaTools/cron/CronWindowController.m
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import "CronWindowController.h"
|
||||||
|
|
||||||
|
@implementation CronWindowController
|
||||||
|
|
||||||
|
@end
|
7
NovaTools/desc/DescWindowController.h
Normal file
7
NovaTools/desc/DescWindowController.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "NovaWindowController.h"
|
||||||
|
|
||||||
|
@interface DescWindowController : NovaWindowController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@end
|
5
NovaTools/desc/DescWindowController.m
Normal file
5
NovaTools/desc/DescWindowController.m
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import "DescWindowController.h"
|
||||||
|
|
||||||
|
@implementation DescWindowController
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in New Issue
Block a user