NSNotificationCenter problem
Adam R. Maxwell
amaxwell at mac.com
Fri Nov 2 10:28:47 PDT 2007
On Nov 2, 2007, at 10:02 AM, Christiaan Hofman wrote:
>
> 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?
From that page:
class_poseAs: deprecated in favor of categories and
method_setImplementation
So there are now public, supported ways to replace IMPs.
--
adam
More information about the MacOSX-dev
mailing list