Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 29, 2009, 07:23 PM   #1
Sergio10
macrumors regular
 
Join Date: Oct 2007
Using Object Controller for Binding

Hi,
I use Object Controller in xcode 3.1 for the control bindings.

I want that edit field control shows my slider position when drag it.

How do I know what exactly value I need to bind in Binding Inspector of the Interface Builder("stringValue", "value" or "floatValue") ?


Thanks,
Sergio
Sergio10 is offline   0 Reply With Quote
Old Mar 30, 2009, 08:08 AM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
I'd bind both your text field and slider to either file's owner or an object controller to the same value. Bindings don't work from a UI object to another, they work from a UI object to a controller.
kainjow is offline   0 Reply With Quote
Old Mar 30, 2009, 12:36 PM   #3
Sergio10
Thread Starter
macrumors regular
 
Join Date: Oct 2007
I mean how to know that max slider position parameter is "maxValue" not "MAX_VALUE" or something else? Where can I see controls name convention parameter when I bind it via Interface Builder?
Sergio10 is offline   0 Reply With Quote
Old Mar 30, 2009, 01:06 PM   #4
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
While bindings can do this, you can't bind a control directly to another with this approach. I would suggest reading through the intro to bindings.

What you can do is control-click your slider and drag to the text field, and then select "takeIntegerValueFrom:" (or one of the other similar methods). You can then select on the slider attributes inspector "Continuous" for it to update instantly.
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: How do I convert an NSData object to an NSDictionary object, and vice versa? moonman239 iPhone/iPad Programming 6 May 2, 2014 01:17 PM
Looking for OD only binding script / need help with binding to OD with DPS dabizkitman Mac OS X Server, Xserve, and Networking 5 Jan 9, 2014 10:29 AM
EX Hybrid Controller for iPhone 5 - Keyboard and Gaming Controller v3rn iPhone Accessories 3 Jan 3, 2013 06:47 PM
About push view controller into a navigation controller stack. cthesky iPhone/iPad Programming 5 Nov 9, 2012 08:36 AM
Segue from Normal View controller to navigation controller daproject85 iPhone/iPad Programming 0 Sep 29, 2012 03:26 PM

Forum Jump

All times are GMT -5. The time now is 04:34 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC