Re: [Pyobjc-dev] Bridging NS and CF classes
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-01-11 02:03:37
|
On Friday, Jan 10, 2003, at 05:52 US/Eastern, Jack Jansen wrote: > What I could do on the CF side (and what I already do, up to a point) > is add special cases only for the CFType objects for which I know the > CFTypeID. In other words: the default for any NS object would be to > be a CF.CFType object. But for various types I would return a better > wrapper (CFString, CFArray, etc). Cool. So that means an ObjC object can be passed as a reference throughout the CF APIs and-- hopefully-- can eventually be turned back into an Py-wrapped ObjC object when it comes back to Python. I'm sure there are some issues. > I am working on the assumption here that CFType == NSObject, so that > any NS object is representable as a CFType, is that assumption > correct? Testing would indicate that that does seem to be the case, but I can't find specific documentation indicating that it is anything but coincidental. b.bum |