• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Passing data between NSOperation and main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Display csv in a tableView with bindings
  • Next by Date: Re: NSButton setImage in runtime : where is template image?
  • Previous by thread: Re: NSButton setImage in runtime : where is template image?
  • Next by thread: Re: Passing data between NSOperation and main thread
  • Index(es):
    • Date
    • Thread