Re: [Pyobjc-dev] objc classes
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2004-05-30 13:42:47
|
On 30-mei-04, at 13:37, Helge Hess wrote: > Ups, forgot a section ... > > On May 30, 2004, at 2:44, b.bum wrote: >> PyObjC could certainly do the same and the source for +poseAsClass: >> is available in the darwin repository. > > Does that imply that +poseAsClass: is not thread safe? Ronald said > that the modifications are not supported for thread safety, probably > so that NSClassFromString etc do not require locks. > I didn't find a hint on that in the Apple class docs. IIRC the source for the runtime contain a note about this. You probably only need a lock when modifying the datastructure. With the right kind of code it should be possible to modify the class structure without getting readers into trouble. > >> If the GNUStep runtime supports posing, it likely does something >> similar. > > The GNU runtime (not really related to GNUstep) supports posing. But PyObjC does not :-(. This is one thing I'd like to look into after the 1.1 release, it may wel be that it is not longer necessary to make it impossible to use posing from Python. Ronald -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173 |