View Single Post

Member Since: Oct 03, 2012
Location: WV
Posts: 30
dhmmjoph is on a distinguished road
Mac Specs: 2012 Mac Mini 2.5ghz OSX 10.10; Black MacBook (late 2006) OSX 10.6.8

dhmmjoph is offline
I attempted to follow these instructions, but it still didn't work.
Here is a picture of the window that appears when I right-click the App Delegate in the Interface Builder:

My code in the AppDelegate looks like this:
    property parent : class "NSObject"
    property myTextField : missing value
    on test_(sender)
        set theText to myTextField's stringValue()
        if theText is equal to "123" then
            display dialog "Yay! This works!"
        end if
    end test_
When I run the app, type '123' in the box and hit return, nothing happens. Am I doing something else wrong?
QUOTE Thanks