Added AppleScript dictionaries to CVS

This commit is contained in:
Nicholas Shanks 2002-10-27 13:29:06 +00:00
parent f8552926f4
commit df5dfb0829
3 changed files with 75 additions and 0 deletions

View File

@ -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 <ResKnifePluginProtocol>)[[templateEditor principalClass] alloc] initWithResources:resource, tmpl, nil];
if( plugController ) return;
}

View 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>

View 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>