• 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: KVO: programmatically created custom views not getting initial value notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO: programmatically created custom views not getting initial value notifications


  • Subject: Re: KVO: programmatically created custom views not getting initial value notifications
  • From: George Orthwein <email@hidden>
  • Date: Fri, 19 May 2006 19:21:12 -0400

What sort of custom view? Are you implementing all the binding and observing yourself? If so, it'll behave however you programmed it to...

A Webview subclass...

Are the other views being notified of *initial* values, or are they simply responding to the array controllers' delayed fetch:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CoreData/Articles/cdBindings.html>

Ack,Yes! That's exactly it! Thanks very much. Logging my controller at the time of addObserver:... I see it is empty when the first view registers but not when the other views register.


My confusion stemmed partially from thinking that the act of registering itself sent the *current value* to the observer (as I believe it does when binding). I see now that is NOT the case with pure KVO.

Thanks!
George
_______________________________________________
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


  • Prev by Date: Re: Method with +
  • Next by Date: Re: Method with +
  • Previous by thread: Re: KVO: programmatically created custom views not getting initial value notifications
  • Next by thread: Method with +
  • Index(es):
    • Date
    • Thread