Re: Array controllers again: still in dark...
Re: Array controllers again: still in dark...
- Subject: Re: Array controllers again: still in dark...
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 24 Apr 2004 12:22:21 -0700
On Apr 24, 2004, at 12:04 PM, Robert Goldsmith wrote:
My conclusion was that somehow, and I really don't
know how this is all done, the bits 'observing' the variable you are
changing don't always notice when you change the variable. I was
actually deallocating and replacing my data source array so figured the
observers couldn't track this. My solution was to use a 'getter' and
'setter' method pair to do the getting and setting - which the
observers seem to have no problem with :) If you use a 'getter'
'setter' style pair of methods and bind to the 'getter' method, it
should work fine.
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueObserving/index.html>
in particular "Automatic Versus Manual Support".
mmalc
_______________________________________________
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.