Re: delayed read-only bindings (suggestions/hints) ?
Re: delayed read-only bindings (suggestions/hints) ?
- Subject: Re: delayed read-only bindings (suggestions/hints) ?
- From: Scott Anguish <email@hidden>
- Date: Wed, 21 Apr 2004 13:54:54 -0400
On Apr 21, 2004, at 5:53 AM, Nicolas Berloquin wrote:
- One, which I already implement for some values, is to have an
NSTimer fire every second
that updates a second (mirror) value with whatever changes apply. This
mirror value is the
one that is bound to the tableColumn. This works fine, but I don't
know how expensive are
NSTimers (what if I have a dozen running ? a hundred ?)
this sounds interesting..
ideally what you want to do is change the way that the KVO
notifications for those fields are sent, so that they're aggregated.
if you turned off automatic KVO for that class, you could restrict the
times that you send the change notifications. You could track when the
last update was, and only send the did/will change notifications once
per second.
_______________________________________________
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.