What to use instead of poseAsClass?

58 Views Asked by At

How can I call NSColorWell without using poseAsClass? Here is my old code, but poseAsClass is depreciated.

+ (void) load
{
    [MyColorWell poseAsClass:[NSColorWell class]];
}

thanks

1

There are 1 best solutions below

0
On

This is an example of replacing exact functionality of poseAsClass with JRSwizzle (a library for overriding methods):

https://github.com/wakatime/textmate-wakatime@06d6e3684603a07ee2a981823f69868d0f6d1a26