Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Set variable to output of text field- xcode 4.5, applescript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dhmmjoph" data-source="post: 1492882" data-attributes="member: 276211"><p>My code now looks like this:</p><p>[CODE]</p><p>property parent : class "NSObject"</p><p> property myTextField : missing value</p><p> </p><p> on test_(sender)</p><p> if sender is equal to myTextField then</p><p> set theText to sender's stringValue()</p><p> end if</p><p> if theText is equal to "123" then</p><p> display dialog "Yay! This works!"</p><p> end if</p><p> end test_</p><p>[/CODE]</p><p></p><p>The additional code did not fix the problem.</p><p></p><p>I am unsure what you mean by "check the connection from the textField to the method"</p></blockquote><p></p>
[QUOTE="dhmmjoph, post: 1492882, member: 276211"] 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_ [/CODE] 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]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Set variable to output of text field- xcode 4.5, applescript
Top