Re: [Pyobjc-dev] DictType -> ObjC
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2002-10-17 20:32:57
|
On donderdag, oktober 17, 2002, at 01:12 , Bill Bumgarner wrote: > How hard would it be to proxy DictType, ArrayType, and > TupleType into Obj-C such that they look/feel/act/behave/are > subclasses of NSDictionary and NSArray? > > That is, such that they implement the primitive methods of > the NSDictionary/NSArray class clusters and internally use the > Py* APIs to retrieve/set values [converting as necessary]? > > This would be significantly valuable in that it doesn't > imply a conversion as the objects come across the bridge from > Python->ObjC, yet they would be compatible with > NSDictionary/NSArray and friends. Will these objects still be compatible with CoreFoundation? I'm not familiar enough with how Apple made CF and NS objects interchangeable, but if Pyobjc would handle most objects not by actually converting them but by putting them in something that merely "looks/feels/acts/behaves" like the real NS class that may not be good enough. I assume that "are" is good enough, but again I'm not sure. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |