FROM : David Dunham
DATE : Mon May 19 05:04:29 2008
On 17 May 2008, at 23:18, mmalc Crawford wrote:
>> You can force a KVO notification by sending a will/
>> didChangeValueForKey:
>> pair of messages.
>>
> As has been said on numerous occasions, no, don't do this.
Having missed all the occasions, why not?
I've got a key which is calculated (it's the number of topics which
are filtered by a search string). As the user types into a search
field, I need to update this derived value. How else can I let KVO
know the calculated value has changed, so it can be displayed in the UI?
(BTW, I'm not using Core Data, and need to work on 10.4.)
David Dunham
Voice/Fax: 206 783 7404 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein
DATE : Mon May 19 05:04:29 2008
On 17 May 2008, at 23:18, mmalc Crawford wrote:
>> You can force a KVO notification by sending a will/
>> didChangeValueForKey:
>> pair of messages.
>>
> As has been said on numerous occasions, no, don't do this.
Having missed all the occasions, why not?
I've got a key which is calculated (it's the number of topics which
are filtered by a search string). As the user types into a search
field, I need to update this derived value. How else can I let KVO
know the calculated value has changed, so it can be displayed in the UI?
(BTW, I'm not using Core Data, and need to work on 10.4.)
David Dunham
Voice/Fax: 206 783 7404 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein






Cocoa mail archive

