Re: [Pyobjc-dev] Bridging NS and CF classes
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-01-10 10:51:52
|
On Friday, Jan 10, 2003, at 04:52 Europe/Amsterdam, bb...@ma... wrote: > I have asked if there is a transparent way of determining if a > particular type/object is bridged on cocoa-dev. Hopefully, someone > there will cough up a clean and easy solution. :-) 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). I am working on the assumption here that CFType == NSObject, so that any NS object is representable as a CFType, is that assumption correct? -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |