• 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: delayed read-only bindings (suggestions/hints) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: delayed read-only bindings (suggestions/hints) ?
      • From: Allan Odgaard <email@hidden>
References: 
 >delayed read-only bindings (suggestions/hints) ? (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: Re: NSTreeController (was: Re: Cocoa bindings and NSOutlineView)
  • Next by Date: Re: pesky nib file problems
  • Previous by thread: Re: delayed read-only bindings (suggestions/hints) ?
  • Next by thread: Re: delayed read-only bindings (suggestions/hints) ?
  • Index(es):
    • Date
    • Thread