diff --git a/Cocoa/Classes/ResourceDocument.m b/Cocoa/Classes/ResourceDocument.m index dd05b6b..aff5992 100644 --- a/Cocoa/Classes/ResourceDocument.m +++ b/Cocoa/Classes/ResourceDocument.m @@ -310,6 +310,7 @@ static NSString *RKShowInfoItemIdentifier = @"com.nickshanks.resknife.toolbar.sh if( tmpl && [[templateEditor principalClass] respondsToSelector:@selector(initWithResources:)] ) { // bug: I alloc a plug instance here, but have no idea where I should dealloc it, perhaps the plug ought to call [self autorelease] when it's last window is closed? + // update: doug says window controllers automatically release themselves when their window is closed. NSWindowController *plugController = [(id )[[templateEditor principalClass] alloc] initWithResources:resource, tmpl, nil]; if( plugController ) return; } diff --git a/Cocoa/English.lproj/ResKnife.scriptTerminology b/Cocoa/English.lproj/ResKnife.scriptTerminology new file mode 100755 index 0000000..e136446 --- /dev/null +++ b/Cocoa/English.lproj/ResKnife.scriptTerminology @@ -0,0 +1,31 @@ + + + + + Name + Resource editor suite + Description + Standard classes supported by modern resource editors. + Classes + + NSApplication + + Name + application + PluralName + applications + Description + ResKnife itself. + + ResourceDocument + + Name + document + PluralName + documents + Description + A resource file, either data fork- or resource fork-based. + + + + \ No newline at end of file diff --git a/Cocoa/Resources/ResKnife.scriptSuite b/Cocoa/Resources/ResKnife.scriptSuite new file mode 100755 index 0000000..c4e0ad6 --- /dev/null +++ b/Cocoa/Resources/ResKnife.scriptSuite @@ -0,0 +1,43 @@ + + + + + Name + ResKnife + AppleEventCode + ScDA + Classes + + ResourceDocument + + AppleEventCode + docu + Superclass + NSCoreSuite.NSDocument + ToOneRelationships + + + + NSApplication + + AppleEventCode + capp + Superclass + NSCoreSuite.NSApplication + ToManyRelationships + + orderedDocuments + + AppleEventCode< + docu + Type + ResourceDocument + + + + +> + + + +