Tom
Tom

Reputation: 101

How do I connect a textfield in interface builder to my code in xcode 3.2?

How do I connect a textField in interface builder to my applescript code in xcode 3.2?

I am using applescript in Xcode 3.2.

Thanks

Tom

Upvotes: 0

Views: 155

Answers (1)

user2056671
user2056671

Reputation: 26

Do you mean create a text field box in applescript? If so, then copy this

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)

Upvotes: 1

Related Questions