Having read the Apple documentation and beginner guides on threading,
I am still a little confused about protecting my variables from access
by multiple threads.
and then -[XMLFetcherParser doYourThing] repeatedly sends newly
created objects to receiveItem: using the performSelectorOnMainThread
method. Once the spawned thread has done this, it never uses the sent
object again.
My question is how should I protect this code from thread related
problems? Do I just place @synchronized(){} blocks around the code in
receiveItem: and it's counterpart in the spawned thread? Or is that
just plain wrong? Or (likely) am I barking up totally the wrong tree?
Regards,
Ben
_______________________________________________
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