Re: [Pyobjc-dev] In and out of NSData
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-01-08 15:02:12
|
On Wednesday, Jan 8, 2003, at 09:56 America/New_York, bb...@ma... wrote: > On Wednesday, Jan 8, 2003, at 01:24 US/Eastern, Ronald Oussoren wrote: >>> Is there currently any way to do (pyobjc) NS* <-> (Carbon.CF) CF* >>> for the toll-free bridged types? I don't see anything obvious from >>> a quick look. > > It isn't necessary. Toll-free means that they are effectively one in > the same. > > In ObjC, if you have.... > > CFDataRef foo; // basically, CFData *foo > > > .... you can: > > [foo bytes]; > > That is, CFData * and NSData * are *exactly the same* as far as the > ObjC runtime and CF*() APIs are concerned. I meant, implicitly, that it needed to be done from python code. I know that it's easy otherwise. .. and don't you have to [(NSData*)foo bytes] ? -bob |