如何将界面生成器中的文本字段连接到xcode 3.2中的代码?

时间:2013-02-09 09:07:24

标签: xcode interface-builder applescript textfield

如何将界面生成器中的textField连接到xcode 3.2中的applescript代码?

我在 Xcode 3.2 中使用 applescript

谢谢

汤姆

1 个答案:

答案 0 :(得分:1)

你的意思是在applescript中创建一个文本字段框?如果是,请复制此

set answer to text returned of (display dialog "Enter the Secret Code:" with title "TextField" default answer "" buttons {"Cancel", "Enter"} default button 2 with hidden answer)