Passing data between NSOperation and main thread
Passing data between NSOperation and main thread
- Subject: Passing data between NSOperation and main thread
- From: Meik Schuetz <email@hidden>
- Date: Sun, 26 Jul 2009 12:13:00 +0100
Dear all,
I am just starting to test my little application for leaks using
Instruments. I have got a NSOperation which is doing some JSON
communication stuff with my server. The NSOperation is sending an
NSDictionary object back to the main thread (using a delegate and
performSelectorOnMainThread) when the thread is about to complete.
It happens that the Leaks instrument is finding leaks just right
there. To analyse the problem, I created a test app having the same
communication method in the main thread. Curiously, the Leaks
instrument is not finding any leak in this test application.
I believe that the NSOperation's main method is encapsulated in
some autorelease pool. Is there anything that I need to worry about
when passing an NSDictionary between threads?
Thanks a lot.
Best regards
Meik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden