Re: Controller Layer and Automatic Key-Value Observing
Re: Controller Layer and Automatic Key-Value Observing
- Subject: Re: Controller Layer and Automatic Key-Value Observing
- From: Subramaniam Baskaran <email@hidden>
- Date: Mon, 10 Nov 2003 07:14:15 -0800
On Nov 7, 2003, at 4:12 PM, Frank Illenberger wrote:
Thank you Henrik,
you helped my a lot. One problem was that I mistook "takeValueForKey"
with "setValueForKey" (did to much EOF lately...) The latter really
triggers an automatic update.
But Apple's online key-value observing documentation
(http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueObserving/index.html) states that direct assignments to
instance variables also should trigger an update:
Listing 3-1 Methods of invoking key-value observing
...
// assigning an instance variable directly
name=[newSavingsName retain];
Is this a bug or is it not yet implemented? Nevertheless, I can't
imagine how they could make this magic work with direct assignments.
This is a bug in the documentation. KVO does not work when assigning
value to an ivar directly.
Baskaran
Frank Illenberger
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.