Re: How to get initial values into dialog via bindings?
Re: How to get initial values into dialog via bindings?
- Subject: Re: How to get initial values into dialog via bindings?
- From: Adam Leonard <email@hidden>
- Date: Sun, 15 Jan 2006 15:17:08 -0800
In IB, try clicking on the text fields and under bindings in whatever
property you are binding to, change the appropriate placeholder
fields with your default values.
I think the bindings will use those values when something is not set
instead of the default textField value. So, it was probably passing
an empty string, causing the default value to be overwritten.
Adam Leonard
On Jan 14, 2006, at 3:09 PM, Guy Umbright wrote:
I am trying to set up a dialog with bindings. I have the
NSObjectController and the dialog
controls all wired up. When I edit the values in the dialog, they
show up modified in the
"target" object,so that is all working properly.
What doesn't work is that the initial values are not mapped into
the controls, I just get
empty text fields (even if default values are specified). The
object has the appropriate
accessor methods and at least the setters all work fine. Is there
something else I need
to do to get the initial object values into the controls?
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden