Cocoa methods that return CF objects
Uli Kusterer
kusterer at gmail.com
Sat Jul 5 09:03:27 PDT 2008
On 05.07.2008, at 16:19, Jim Correia wrote:
> On Jul 5, 2008, at 5:37 AM, Uli Kusterer wrote:
>
>> At least I think so. I remember painstakingly swizzling so I can
>> log retain/release calls, only to find that CFRetain() on a
>> CFArrayRef didn't trigger my override, and I think the above was
>> the reason I determined back then.
>
> In its current implementation, CFRetain will send -retain to the
> object if the argument is an obj-c object, otherwise do the CF
> retain count dance.
OK, I stand corrected, that matches with observed behaviour. Trouble
is just, I really wanted to override retain/release, breakpoints
weren't really enough... and I wasn't able to find a way to tell
CFRetain/CFRelease to call me when they do their work. Tried lots of
things, custom allocators etc., but there seems to be some information
missing in the retain callbacks and similar.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
More information about the MacOSX-dev
mailing list