Cocoa Applescript属性设置程序工作不正常--如何执行?

Cocoa Applescript属性设置程序工作不正常--如何执行?,cocoa,applescript,Cocoa,Applescript,我的Cocoa项目的sdef文件中有一个属性,我可以让我的Applescripts正确读取属性,但是我无法让他们设置它,因为Applescript编辑器中有一个错误 我的sdef粘贴在下面。该物业是否有特别约定?我本以为它只是-void setLength:NSNumber*len;。不是吗 ` ` 谢谢 可能是发布/保留的问题 如果只使用@synthesis length;而不是客户设定者 <xi:include href="file:///System/Library/Scripti

我的Cocoa项目的sdef文件中有一个属性,我可以让我的Applescripts正确读取属性,但是我无法让他们设置它,因为Applescript编辑器中有一个错误

我的sdef粘贴在下面。该物业是否有特别约定?我本以为它只是-void setLength:NSNumber*len;。不是吗

`

`


谢谢

可能是发布/保留的问题

如果只使用@synthesis length;而不是客户设定者

<xi:include href="file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef"
            xpointer="xpointer(/dictionary/suite)"/>


<suite name="Timer Scripting" code="StTs"
       description="Commands and classes for Timer">

    <command name="createtimer" code="sttscret" description="Create a new timer">
    </command>

    <class name="application" code="smgT"
           description="Timer application">

        <cocoa class="NSApplication"/>

        <property name="length"
                  code="tlen"
                  type="integer"
                  access="rw"
                  description="length of timer in seconds"/>

        <responds-to name="createtimer">
            <cocoa method="createTimer:"/>
        </responds-to>
    </class>
</suite>