I'm brand new to the world of Xcode 4.4 and AppleScriptObjC. I'm trying to expand and experiment with a tutorial on AppleScriptObjC in the book "Learn AppleScript" by Sanderson and Rosenthal, and I've run into a problem. The code:
property parent : class "NSObject"
property textField : missing value
on buttonClick_(sender)
set theText to textField's stringValue()
set dialogText to text returned of (display dialog "Here is the text your entered: " & return & theText default answer "")
textfield's setStringValue_(dialogText)
end buttonClick
runs perfectly, and I get the dialog as expected, and everything works. But if I try to mess around with it and add these two lines (in the appropriate places, of course):
property anotherTextField : missing value
...
set theText to textField's stringValue() & otherTextField's stringValue()
The program still runs - BUT! - if I go to the MainMenu.xib and ctrl-click AppDelegate to get the outlets inspector ... there is no Outlet for anotherTextField, even though there should be.
Any ideas?