Add an active property to the scripting definition for Account.
This commit is contained in:
parent
887f8e0b53
commit
31e089fc1d
|
@ -84,7 +84,10 @@
|
||||||
<property name="type" code="ATyp" type="account type" access="r" description="The type of the account">
|
<property name="type" code="ATyp" type="account type" access="r" description="The type of the account">
|
||||||
<cocoa key="accountType"/>
|
<cocoa key="accountType"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="contents" code="Cnts" access="r" description="The type of the account">
|
<property name="active" code="Actv" type="boolean" access="rw" description="Whether or not the account is active">
|
||||||
|
<cocoa key="scriptingIsActive"/>
|
||||||
|
</property>
|
||||||
|
<property name="contents" code="Cnts" access="r" description="The type of the account">
|
||||||
<cocoa key="contents"/>
|
<cocoa key="contents"/>
|
||||||
<type type="account item" list="yes"/>
|
<type type="account item" list="yes"/>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -25,7 +25,17 @@ class ScriptableAccount: NSObject, UniqueIdScriptingObject, ScriptingObjectConta
|
||||||
let scriptObjectSpecifier = myContainer.makeFormUniqueIDScriptObjectSpecifier(forObject:self)
|
let scriptObjectSpecifier = myContainer.makeFormUniqueIDScriptObjectSpecifier(forObject:self)
|
||||||
return (scriptObjectSpecifier)
|
return (scriptObjectSpecifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc(scriptingIsActive)
|
||||||
|
var scriptingIsActive: Bool {
|
||||||
|
get {
|
||||||
|
return account.isActive
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
account.isActive = newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: --- ScriptingObject protocol ---
|
// MARK: --- ScriptingObject protocol ---
|
||||||
|
|
||||||
var scriptingKey: String {
|
var scriptingKey: String {
|
||||||
|
|
Loading…
Reference in New Issue