• 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: mmalcolm crawford <email@hidden>
  • Date: Fri, 19 May 2006 14:11:42 -0700


On May 19, 2006, at 2:00 PM, George Orthwein wrote:

My app has one or more custom views that observe an NSArrayController (which is bound to a MOC):
[docPrefsController addObserver:self forKeyPath:@"selection.headerColor" options:nil context:NULL];
[...]
Any ideas why there is no notification of the initial values? I can't quite tell for sure from the docs if current values are supposed to be sent upon registering, but I assume so.


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

I've verified that the controller (core data) values are initialized by the time my initial "nib" custom view registers for KVO, so I'm having trouble seeing how the situation is different between the initial view and the later created views.

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>


mmalc

_______________________________________________
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


References: 
 >KVO: programmatically created custom views not getting initial value notifications (From: George Orthwein <email@hidden>)

  • Prev by Date: RE: Binding to Accessors of Application Delegate
  • Next by Date: Re: NSAppleScript not in the main thread
  • Previous by thread: KVO: programmatically created custom views not getting initial value notifications
  • Next by thread: Re: KVO: programmatically created custom views not getting initial value notifications
  • Index(es):
    • Date
    • Thread