Re: [Pyobjc-dev] PyObjcC class method swizzling
Brought to you by:
ronaldoussoren
From: Lukas P. | D. V. <lu...@dr...> - 2009-09-21 00:49:18
|
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 |