[Adium-devl] poseAsClass help
Ofri Wolfus
ofri.wolfus at gmail.com
Sun May 20 14:34:29 UTC 2007
Just remember static variables are, well, static, and therefor can be
thought more as class variables than instance variables. To get the
effect of instance variable, use a static dictionary with instances
as keys and objects as the ivar's value (hint - use CFDictionary with
NULL callbacks and remove the objects from the dictionary in -dealloc
in order to avoid leaks caused by the dictionary retaining/copying
your values/keys).
- Ofri
- - - - - - - - - - - - - - - - - - -
http://www.dpompa.com
- - - - - - - - - - - - - - - - - - -
On 19/05/2007, at 07:19, 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;
>
> Any attempt to use this makes the thing crash... Ideas?
>
> -- Joe Ranieri
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070520/e2ae2c80/attachment-0001.html>
More information about the devel
mailing list