mirror of
https://github.com/nickshanks/ResKnife.git
synced 2025-01-03 04:31:27 +00:00
Added AppleScript dictionaries to CVS
This commit is contained in:
parent
f8552926f4
commit
df5dfb0829
@ -310,6 +310,7 @@ static NSString *RKShowInfoItemIdentifier = @"com.nickshanks.resknife.toolbar.sh
|
|||||||
if( tmpl && [[templateEditor principalClass] respondsToSelector:@selector(initWithResources:)] )
|
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?
|
// 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 <ResKnifePluginProtocol>)[[templateEditor principalClass] alloc] initWithResources:resource, tmpl, nil];
|
NSWindowController *plugController = [(id <ResKnifePluginProtocol>)[[templateEditor principalClass] alloc] initWithResources:resource, tmpl, nil];
|
||||||
if( plugController ) return;
|
if( plugController ) return;
|
||||||
}
|
}
|
||||||
|
31
Cocoa/English.lproj/ResKnife.scriptTerminology
Executable file
31
Cocoa/English.lproj/ResKnife.scriptTerminology
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||||
|
<plist version="0.9">
|
||||||
|
<dict>
|
||||||
|
<key>Name</key>
|
||||||
|
<string>Resource editor suite</string>
|
||||||
|
<key>Description</key>
|
||||||
|
<string>Standard classes supported by modern resource editors.</string>
|
||||||
|
<key>Classes</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSApplication</key>
|
||||||
|
<dict>
|
||||||
|
<key>Name</key>
|
||||||
|
<string>application</string>
|
||||||
|
<key>PluralName</key>
|
||||||
|
<string>applications</string>
|
||||||
|
<key>Description</key>
|
||||||
|
<string>ResKnife itself.</string>
|
||||||
|
</dict>
|
||||||
|
<key>ResourceDocument</key>
|
||||||
|
<dict>
|
||||||
|
<key>Name</key>
|
||||||
|
<string>document</string>
|
||||||
|
<key>PluralName</key>
|
||||||
|
<string>documents</string>
|
||||||
|
<key>Description</key>
|
||||||
|
<string>A resource file, either data fork- or resource fork-based.</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
43
Cocoa/Resources/ResKnife.scriptSuite
Executable file
43
Cocoa/Resources/ResKnife.scriptSuite
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||||
|
<plist version="0.9">
|
||||||
|
<dict>
|
||||||
|
<key>Name</key>
|
||||||
|
<string>ResKnife</string>
|
||||||
|
<key>AppleEventCode</key>
|
||||||
|
<string>ScDA</string>
|
||||||
|
<key>Classes</key>
|
||||||
|
<dict>
|
||||||
|
<key>ResourceDocument</key>
|
||||||
|
<dict>
|
||||||
|
<key>AppleEventCode</key>
|
||||||
|
<string>docu</string>
|
||||||
|
<key>Superclass</key>
|
||||||
|
<string>NSCoreSuite.NSDocument</string>
|
||||||
|
<key>ToOneRelationships</key>
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>NSApplication</key>
|
||||||
|
<dict>
|
||||||
|
<key>AppleEventCode</key>
|
||||||
|
<string>capp</string>
|
||||||
|
<key>Superclass</key>
|
||||||
|
<string>NSCoreSuite.NSApplication</string>
|
||||||
|
<key>ToManyRelationships</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderedDocuments</key>
|
||||||
|
<dict>
|
||||||
|
<key>AppleEventCode<</key>
|
||||||
|
<string>docu</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>ResourceDocument</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>>
|
||||||
|
</plist>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user