[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Posing as NSPort



I want to pose as NSPort to watch retain/release activity during some DO 
maneuvers, but I'm having no luck.  I get the impression that there is 
some funny business going on when you create an NSPort object, as I 
never see any actual instances of "NSPort" listed in ObjectAlloc, only 
CFMachPorts created in their place.  But clearly I'm manipulating NSPort 
objects in my code, so this is very confusing.  Using subclassed NSPort 
objects doesn't work either, since the framework seems to notice that 
I'm using a subclass in place of a proper NSPort and expects me to 
implement some special behaviors that I'm ill-prepared to offer.  I have 
no trouble similarly posing as other classes, but NSPort has me baffled.

John Saccente
jsaccente@xxxxxxx