Re: Cocoa threading, objects by reference, and the keyword "oneway"
Re: Cocoa threading, objects by reference, and the keyword "oneway"
- Subject: Re: Cocoa threading, objects by reference, and the keyword "oneway"
- From: Brendan Younger <email@hidden>
- Date: Wed, 6 Jun 2001 14:28:09 -0500
Passing by reference is not the correct way to do this. Instead of
passing &skymap, pass just skymap. This will pass the id of the class
which is what you probably want to do. The Obj-C runtime knows where
and what each object is simply through it's id. Another possibility is
using distributed objects to "vend" the class and then pick it up in
each thread that uses it (with locks in place, of course). Good luck.
Brendan Younger