【问题标题】:ApplescriptObjC - display text field text on a labelApplescriptObjC - 在标签上显示文本字段文本
【发布时间】:2016-08-07 23:31:39
【问题描述】:

我已经被困了很多天了,我在网上找不到 ApplescriptObjC 的解决方案和文档似乎很低,我想做的是在 Xcode 4.6 中使用 ApplescriptObjC 将文本从文本字段复制到标签这是我的代码和绑定:

我收到此错误

2016-08-05 16:10:32.114 BoxEye[12604:303] *** -[AppDelegate selectSource:]: Can’t make «class ocid» id «data optr00000000C04AF40901000000» into type string. (error -1700)

property parent : class "NSObject"
property myLabel : missing value
property textFeild: missing value


on selectSource_(sender) 

       myLabel's setStringValue_(textFeild)

end selectSource_

【问题讨论】:

    标签: xcode applescript-objc


    【解决方案1】:

    我会尝试做

    myLabel's setStringValue_((textfield's stringValue()) as text)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多