• 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
Cocoa and cooperative threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa and cooperative threads


  • Subject: Cocoa and cooperative threads
  • From: Martin Hairer <email@hidden>
  • Date: Tue, 26 Jul 2005 23:35:01 +0100

Hi, I just started the process of porting my app from Carbon to
Cocoa. For the moment, things look rather fine, I have now a
working Cocoa application with mainly Carbon windows. Now
one peculiarity of my application is that it relies very much on
cooperative threads. I do quite a lot of GUI stuff from these threads
which in principle should be quite safe.

It seems that Cocoa however doesn't like that at all... It seems
to be especially confused if one allocates an object in one thread
and then releases it in another one. Is there some workaround for
this (like having only one autorelease pool shared among all of the
cooperative threads, if this is at all possible) or will I just have to
write the Cocoa bits in such a way that they only ever live in the "true"
main thread? Sorry if this is a dumb question, I just started to dig into
Cocoa... Thanks,


Martin

HairerSoft
http://www.hairersoft.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Cocoa and cooperative threads
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Developing for Tiger and Panther;
  • Next by Date: Re: Developing for Tiger and Panther;
  • Previous by thread: Re: Developing for Tiger and Panther;
  • Next by thread: Re: Cocoa and cooperative threads
  • Index(es):
    • Date
    • Thread