• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force binding to set variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 binding‹no 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

  • Follow-Ups:
    • Re: Force binding to set variable?
      • From: George Orthwein <email@hidden>
References: 
 >Re: Force binding to set variable? (From: George Orthwein <email@hidden>)

  • Prev by Date: Re: runModalSession:relativeToWindow: alternative?
  • Next by Date: Re: Getting progress of HTTP POST as it's being UPLOADED
  • Previous by thread: Re: Force binding to set variable?
  • Next by thread: Re: Force binding to set variable?
  • Index(es):
    • Date
    • Thread