Re: [Pyobjc-dev] [ pyobjc-Bugs-836247 ] NSWindow.contentRectForFrameRect_styleMask_ not a class meth
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-11-05 22:24:30
|
On 5-nov-03, at 17:26, Bob Ippolito wrote: > > On Nov 5, 2003, at 5:00 AM, Ronald Oussoren wrote: > >> NSObject.foo() # Instancemethod, or if that does not exist >> classmethod >> NSObject.pyobjc_classMethods.foo() # Classmethod >> NSObject.pyobjc_instanceMethods.foo() # Instancemethod > > Another idea - how about putting that on the selector instead? > > NSObject.foo() # smart decision by the selector (smarter than > instance if it has one, see previous email) > NSObject.foo.classMethod() # classmethod > NSObject.foo.instanceMethod() # instanceMethod That would make "NSObject.foo" a funny sort of object. In the current scheme NSObject.foo is a perfectly normal object, either an unbound method or a class method. -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |