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 wh

MAX parsing (Re: TBXML question)

2012-01-14 Thread Marcel Weiher
On Jan 13, 2012, at 15:23 , Eric E. Dolecki wrote: > I have XML like this: > > > > > > > > Don't know much about TBXML, but with MAX, the following code parses the file (including model classes and scaffolding): -- snip #import @interface User:NSObjec

Re: Adding an observer to an NSOperation crashes my app.

2012-01-14 Thread Mike Abdullah
Your code snippet got mangled making it very hard for me to read. Please can we have a full backtrace for the crash. Is there anything interesting in the console? Have you tried running with zombies enabled? On 14 Jan 2012, at 07:30, G S wrote: > Hi all. Working on an iPhone app and encountere

Re: Is slowing down bindings updates possible?

2012-01-14 Thread Kyle Sluder
On Jan 14, 2012, at 2:53 AM, Marcel Weiher 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 tell cocoa to

Re: Adding an observer to an NSOperation crashes my app.

2012-01-14 Thread G S
Thanks, Mike. There's nothing in the console.  The whole call stack at the time of the crash is this (when I create the operation on the main thread): #0 0x00396336 in -[NSOperation observationInfo] () #1 0x0036823a in _NSKeyValueRetainedObservationInfoForObject () #2 0x00379c98 in -[NSObject(NSK

Core Data : Correct way to force reading property from sql store?

2012-01-14 Thread Jerry Krinock
I want my app to access the new value of an object's property stored in an sqlite store, after this value has been modified on disk by another process. A few weeks ago, I did this, and I thought it was working: [[obj managedObjectContext] refreshObject:self mer

Re: Adding an observer to an NSOperation crashes my app.

2012-01-14 Thread Kyle Sluder
On Jan 14, 2012, at 1:25 PM, G S wrote: > Thanks, Mike. > > There's nothing in the console. The whole call stack at the time of > the crash is this (when I create the operation on the main thread): > > #0 0x00396336 in -[NSOperation observationInfo] () > #1 0x0036823a in _NSKeyValueRetainedObs

Re: Adding an observer to an NSOperation crashes my app. RESOLVED

2012-01-14 Thread G S
Thanks to all who answered. It was a simple boneheaded maneuver: Failing to call [super init] in the initialization method of my derived class. DUH. Works fine now! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

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