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: 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.

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

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

Adding an observer to an NSOperation crashes my app.

2012-01-13 Thread G S
Hi all. Working on an iPhone app and encountered a stumper. I have various kinds of operations (derived from NSOperation) to do async queries over the Internet. As is the norm, I determine when they're finished by observing their isFinished property, and getting the results in observeValueForKeyP