Re: Is slowing down bindings updates possible?

2012-02-05 Thread Marcel Weiher
On Jan 19, 2012, at 1:33 , Ken Thomases wrote: On Jan 18, 2012, at 6:12 PM, Marcel Weiher wrote: On Jan 14, 2012, at 18:37 , Kyle Sluder wrote: Breaking this pattern should be a conscious decision. I'd say that the opposite is true: in general you should avoid specific model - view

Re: Is slowing down bindings updates possible?

2012-02-05 Thread Alex Zavatone
Does the OP mean slowing down binding's updates instead of slowing down bindings updates? The subject doesn't make any sense to me. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Is slowing down bindings updates possible?

2012-01-18 Thread Marcel Weiher
Hi Kyle, On Jan 14, 2012, at 18:37 , Kyle Sluder wrote: On Jan 14, 2012, at 2:53 AM, Marcel Weiher marcel.wei...@gmail.com wrote: You shouldn't push updates to the UI, the UI should query the model, and it should do it at human speed, not at whatever speed the machine can manage to change

Re: Is slowing down bindings updates possible?

2012-01-18 Thread Ken Thomases
On Jan 18, 2012, at 6:12 PM, Marcel Weiher wrote: On Jan 14, 2012, at 18:37 , Kyle Sluder wrote: The UI will register as a KVO observer, or as an NSNotification observer, or perhaps the controller will just call -setObjectValue: directly. In my experience and opinion most of these are

Re: Is slowing down bindings updates possible?

2012-01-18 Thread Kyle Sluder
On Wed, Jan 18, 2012 at 4:33 PM, Ken Thomases k...@codeweavers.com wrote: On Jan 18, 2012, at 6:12 PM, Marcel Weiher wrote: On Jan 14, 2012, at 18:37 , Kyle Sluder wrote: Breaking this pattern should be a conscious decision. I'd say that the opposite is true:  in general you should avoid

Re: Is slowing down bindings updates possible?

2012-01-15 Thread Leo
I'm not sure if this has already been suggested: What if you don't update the UI unless the change is at least 1 sec or 1% or certain amount of bytes (whatever suits your needs better)? Leo On 1/15/12 12:33:31 AM, Andrew wrote: Thank you all for the opinions. I left the code as-is in terms

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Marcel Weiher
Hi Andrew, On Jan 13, 2012, at 6:57 , Andrew wrote: The result of this is that the UI updates really frequently and the estimated time to complete and the download rate jump around a lot. I would love it if I could tell cocoa to only update the UI once per second instead of immediately when

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Kyle Sluder
On Jan 14, 2012, at 2:53 AM, Marcel Weiher marcel.wei...@gmail.com wrote: Hi Andrew, On Jan 13, 2012, at 6:57 , Andrew wrote: The result of this is that the UI updates really frequently and the estimated time to complete and the download rate jump around a lot. I would love it if I could

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Andrew
Thank you all for the opinions. I left the code as-is in terms of binding, but changed my rate calculations to use a weighted running average. After doing so, the estimated seconds tick by one at a time for the most part, and the rate is more constant. This is a tool for me and some co-workers, so

Re: Is slowing down bindings updates possible?

2012-01-13 Thread Keary Suska
On Jan 12, 2012, at 10:57 PM, Andrew wrote: I have a download controller with an NSMutableArray and an NSArrayController hooked up to a NSTableView with a view based setup. My array contains custom download objects. Each of those has a NSURLDownload instance. Basically, I am showing a

Re: Is slowing down bindings updates possible?

2012-01-13 Thread Steve Christensen
Why don't you just decouple your UI from the by-the-millisecond download process? For example, you could update calculated values whenever the value of bytesDownloaded changes but use a NSTimer to update the display of those values maybe once or twice a second. The display is then sampling the

Is slowing down bindings updates possible?

2012-01-12 Thread Andrew
I have a download controller with an NSMutableArray and an NSArrayController hooked up to a NSTableView with a view based setup. My array contains custom download objects. Each of those has a NSURLDownload instance. Basically, I am showing a browser-download like interface with size downloaded,

Re: Is slowing down bindings updates possible?

2012-01-12 Thread Wade Tregaskis
The result of this is that the UI updates really frequently and the estimated time to complete and the download rate jump around a lot. I would love it if I could tell cocoa to only update the UI once per second instead of immediately when the property key changes. I don't believe there is