Re: Force binding to set variable?
Re: Force binding to set variable?
- Subject: Re: Force binding to set variable?
- From: Trygve Inda <email@hidden>
- Date: Wed, 30 Aug 2006 03:42:43 +0000
- Thread-topic: Force binding to set variable?
> Are you using bindings or observing with KVO? I thought initial
> values were sent upon binding, while they are not with KVO.
>
> For KVO, I have just ended up enumerating through an array of
> attributes to set initial values....
>
> I just noticed that you didn't mention a controller... the controls/
> view are bound directly to the model? Maybe this is why you don't get
> initial values stored upon bindingno controller magic to initially
> sync the values. Not sure though.
>
> George
How would you bind it to the controller vs the model? Can you give an
example?
My object has an instance variable "dict" and I bind the controls (mostly
checkboxes) to dict.someKeyName.
Trygve
_______________________________________________
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