support for "make new feed"

This commit is contained in:
Olof Hellman
2018-02-20 00:26:46 -08:00
parent cc43b4be7a
commit 71005b56af
5 changed files with 177 additions and 4 deletions

View File

@@ -56,8 +56,18 @@ extension AppDelegate : AppDelegateAppleEvents {
}
}
class EvergreenCreateElementCommand : NSCreateCommand {
override func performDefaultImplementation() -> Any? {
let classDescription = self.createClassDescription
if (classDescription.className == "feed") {
return ScriptableFeed.handleCreateElement(command:self)
}
return nil
}
}
class EvergreenExistsCommand : NSExistsCommand {
// cocoa default behavior doesn't work here, because of cases where we define an object's property
// to be another object type. e.g., 'permalink of the current article' parses as
// <property> of <property> of <top level object>