Skip navigation.
 
mlRe: NSNotificationCenter problem
FROM : Adam R. Maxwell
DATE : Fri Nov 02 18:28:47 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

Related mailsAuthorDate
mlNSNotificationCenter problem Andreas Höschler Nov 1, 11:15
mlRe: NSNotificationCenter problem Christiaan Hofman Nov 1, 11:44
mlRe: NSNotificationCenter problem Scott Stevenson Nov 2, 02:28
mlRe: NSNotificationCenter problem Christiaan Hofman Nov 2, 10:59
mlRe: NSNotificationCenter problem Adam R. Maxwell Nov 2, 16:51
mlRe: NSNotificationCenter problem Christiaan Hofman Nov 2, 18:02
mlRe: NSNotificationCenter problem Adam R. Maxwell Nov 2, 18:28
mlRe: NSNotificationCenter problem Scott Stevenson Nov 6, 07:55
mlRe: NSNotificationCenter problem Bill Bumgarner Nov 6, 08:42
mlRe: NSNotificationCenter problem Bill Bumgarner Nov 6, 08:45
mlRe: NSNotificationCenter problem Scott Stevenson Nov 6, 10:58