[Adium-devl] Plugins - Handling different adium's versions
Evan Schoenberg
evan.s at dreskin.net
Thu Jun 12 19:09:50 UTC 2008
On Jun 12, 2008, at 2:18 PM, Peter Hosey <prh at boredzo.org> wrote:
> On Jun 12, 2008, at 10:20:06, Zachary West wrote:
>> If it's that prolific, you could probably add a category to
>> ESObjectWithProperties to respond to -statusObjectForKey: and and
>> the like, for backwards compatibility.
>
> In a plug-in?
>
> I know they aren't numerous right now, but that still sounds like a
> recipe for disaster.
>
Yeah, don't do that... But a variation would be easy. Category with a
unique function - YourPluginName_compatibleStatusObjectForKey:
And do your selector checking there. Then find-and-replace your
existing code to use it.
-Evan
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
More information about the devel
mailing list