Re: [Pyobjc-dev] PyObjcC class method swizzling
Brought to you by:
ronaldoussoren
From: Lukas P. | D. V. <lu...@dr...> - 2009-09-20 16:45:47
|
Oh, right, that's a good idea. Instance method or class method swizzling is basically the idea of replacing an existing class/instance method implementation with your own implementation, however differently from using categories, since the original implementation should be preserved to later use it in your own implementation of the mehtod. This allows you to add additional functionality to the original method implementation, in my case for example to add a preferences pane to Mail.app which is otherwise not possible. I hope this explains a little better what i'm looking for. Thx for in advance for any help Lukas Am 20.09.2009 um 16:38 schrieb Aahz: > On Sat, Sep 19, 2009, Lukas Pitschl | Dressy Vagabonds wrote: >> >> Unfortunately at the moment I'm stuck with class method swizzling. >> I've found a very nice decorator which can be used to swizzle >> instance >> methods: > > Could you please explain what "swizzling" is? I've never heard the > term > before, and I haven't, it's likely other people haven't, either -- > more > efficient for you to explain than force everyone to JFGI. > -- > Aahz (aa...@py...) <*> http://www.pythoncraft.com/ > > "I won't accept a model of the universe in which free will, omniscient > gods, and atheism are simultaneously true." --M > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |