• 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: Controller Layer and Automatic Key-Value Observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Controller Layer and Automatic Key-Value Observing (From: Frank Illenberger <email@hidden>)

  • Prev by Date: Re: NSXMLParser question
  • Next by Date: Re: DataSource class of NSTableView - weird
  • Previous by thread: Re: Controller Layer and Automatic Key-Value Observing
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread