NSNotificationCenter problem

Christiaan Hofman cmhofman at gmail.com
Fri Nov 2 10:02:49 PDT 2007


On 2 Nov 2007, at 4:51 PM, Adam R. Maxwell wrote:

> On Nov 2, 2007, at 2:59 AM, Christiaan Hofman wrote:
>
>> On 2 Nov 2007, at 2:28 AM, Scott Stevenson wrote:
>>
>>> On Nov 1, 2007, at 3:44 AM, Christiaan Hofman wrote:
>>>
>>>> You can always use a subclass and poseAsClass: for debugging.  
>>>> make sure you do it early enough (e.g. at the start of main()).
>>>
>>> FWIW, this is deprecated in Leopard.
>>>
>>>     - Scott
>>>
>>
>> So what's the alternative in Leopard? There are situations where  
>> you don't have control over inserting subclasses, like this one.
>
> It looks like you can replace specific methods, like OBUtilities.
>   http://developer.apple.com/documentation/Cocoa/Reference/ 
> ObjCRuntimeRef/index.html
>
> -- 
> adam

I know. But it seems to me that if class posing is deprecated than  
method swizzling might also be "deprecated", perhaps even more so?

Christiaan



More information about the MacOSX-dev mailing list