0

My app is randomly crashing as I have used KVO for NSOperationQueue. I did run instrument and found below ARC retain count situation.

enter image description here

and this is my code.

@try
{
    [[ApplicationManager sharedInstance].operationsQueue removeObserver:self forKeyPath:@"operations"];
}
@catch( NSException *exception )
{
    //NSLog(@"caught exception trying to remove an observer we are not observing");
}

[[ApplicationManager sharedInstance].operationsQueue addObserver:self forKeyPath:@"operations" options:0 context:NULL];

It would be great if you someone can point me right direction.

Pankaj Gaikar
  • 2,357
  • 1
  • 23
  • 29

0 Answers0