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
A couple xCode questions
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="xstep" data-source="post: 1036922" data-attributes="member: 11647"><p>In your controller object you want to add an outlet of NSSlider type and an action for your slider to send to. You then control drag from the slider to your controller instance and connect to the action. Then you control drag from the controller to the slider and connect to your outlet. I think I have that the right way around.</p><p></p><p>Now in the action code, you do your math and update the text field. That will be called when the slider moves and you'll get the value from the slider via the takeIntValueFrom: message.</p><p></p><p>You should have an outlet for the text box too and connected via IB.</p><p></p><p>Do you have some books? How are you learning this stuff?</p></blockquote><p></p>
[QUOTE="xstep, post: 1036922, member: 11647"] In your controller object you want to add an outlet of NSSlider type and an action for your slider to send to. You then control drag from the slider to your controller instance and connect to the action. Then you control drag from the controller to the slider and connect to your outlet. I think I have that the right way around. Now in the action code, you do your math and update the text field. That will be called when the slider moves and you'll get the value from the slider via the takeIntValueFrom: message. You should have an outlet for the text box too and connected via IB. Do you have some books? How are you learning this stuff? [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
A couple xCode questions
Top