View Single Post
dhmmjoph

 
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
My code now looks like this:
Code:
property parent : class "NSObject"
    property myTextField : missing value
    
    on test_(sender)
        if sender is equal to myTextField then
            set theText to sender's stringValue()
        end if
        if theText is equal to "123" then
            display dialog "Yay! This works!"
        end if
    end test_
The additional code did not fix the problem.

I am unsure what you mean by "check the connection from the textField to the method"
QUOTE Thanks