nsoperationqueue

Why is my NSOperationQueue not behaving correctly in iOS 4.0?

I have used NSOperationQueue in my iPhone app before in iPhone OS 3.0, but now in iOS 4.0 the code is not working properly. It runs properly only once and on all subsequent calls, it doesnt work. Have there been changes in NSOperationQueue in iOS 4.0? The relevant code is as follows: - (void) starteffectFunction { NSOpera...

Crashing with ASIHTTPRequest and NSOperationQueue when cancelling operations

Hi All. I'm having a really hard time when trying to cancel requests in an NSOperationQueue. Before deallocating my 'engine' object, I call a cancelOperations method to cancel everything in the queue, so this will include in flight ASIHTTPRequests and queued ones... e.g. Engine.m -(void)getContent { if (![self queue]) { [...