Re: [Pyobjc-dev] Access to 'hidden' class-methods
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-01-12 21:36:53
|
On zondag, jan 12, 2003, at 20:36 Europe/Amsterdam, Ronald Oussoren wrote: > > Right. A class is an instance of its meta-class and class-methods are > in fact normal methods of the meta-class [...] Are you sure this is the case? Then how can I access "self" in a class method (which would be the class)? Or is the only reason I can't get at self in a class method is that the ObjC syntactic sugar doesn't allow it? Hmm, another wild idea: would this mean that by declaring a category on the metaclass you could influence creation of all ObjC objects? -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |