[Adium-devl] poseAsClass help

Evan Schoenberg evan at adiumx.com
Sun May 20 14:22:34 UTC 2007


On May 20, 2007, at 6:44 AM, Colin Barrett wrote:

> On May 18, 2007, at 9:19 PM, Joe Ranieri wrote:
>
>> So, I'm working on that less hackish hack... I know when using
>> poseAsClass you can't add ivars, but I thought you could have static
>> variables? like:
>> static NSDistantObject<AIAdium> * adium = nil;
>
> Just a note on poseAsClass:. It might be to your benefit to use
> swizzling instead -- AIUI, Leopard introduces changes that break
> poseAsClass, but include a mechanism for a blessed type of swizzling.
>
> Not sure if I just violated my NDA, but I'm pretty sure that's been
> publicly confirmed.

I think you're right about the confirmation, Colin. In any case,  
swizzling is decidedly more elegant and robust.  Source/ 
AIDictionaryDebug.m has my BSD-licensed take on swizzling which IMO  
is easier to use than the classic presentation.

-Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070520/53033887/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070520/53033887/attachment.sig>


More information about the devel mailing list