Re: [Pyobjc-dev] PyObjcC class method swizzling
Brought to you by:
ronaldoussoren
From: Lukas P. | D. V. <lu...@dr...> - 2009-09-21 10:49:40
|
Just for information: I've now decided to change strategy and implement the class method swizzling in Objective-C. That works like a charm. I'm still interested though in any solutions to this problems, since I don't want to load many objective-c frameworks into my plugin. Thx for the help everyone Lukas Am 21.09.2009 um 02:20 schrieb Lukas Pitschl | Dressy Vagabonds: > Of course you'd use a decorator, the problem is that PyObjC doesn't > like it if you combine @classmethod and @swizzle (dealing with the > swizzle). > I still haven't found out why that is, but it simply won't work > > > Am 21.09.2009 um 01:57 schrieb Aahz: > >> On Mon, Sep 21, 2009, Lukas Pitschl | Dressy Vagabonds wrote: >>> >>> That might be same, don't really know those terms. The important >>> thing is that they do the same thing being, replacing the original >>> implementation with a custom one and preserve the original one to >>> call >>> it in the custom one. >>> >>> Any idea Aahz on how to do that? >> >> That's basically what decorators do, here are a couple of hits from >> Googling "python decorator tutorial": >> >> http://www.artima.com/weblogs/viewpost.jsp?thread=240808 >> http://uswaretech.com/blog/2009/06/understanding-decorators/ >> -- >> 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 > > > ------------------------------------------------------------------------------ > 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 |