Re: [Pyobjc-dev] In and out of NSData
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-01-08 14:56:31
|
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. b.bum |