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-07 11:35:31
|
On 5 Nov 2003, at 23:44, Bob Ippolito wrote: >>> 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. > > Except that it has a signature, isClassMethod, etc. It's not a > perfectly normal object, it's a selector instance. One of the big > "selling points" of ObjC is that you can pretty much translate ObjC > code to Python, this is a stumbling block I think we should work > around. Hmm, you have a point. If I look at this then sometimes I agree with you, sometimes I agree with myself. It really depends on whether you take a Pythonic view or on ObjC-view. -- 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 |