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-08 23:30:29
|
On 7-nov-03, at 18:45, b.bum wrote: > On Nov 7, 2003, at 8:20 AM, Bob Ippolito wrote: >> No, it also happens when you are just using ObjC classes from the >> Python side of the bridge. It *always* binds to the instance method, >> nomatter what, if it has one. I'm not even worried about overriding >> them from Python at the moment, just making ObjC classes usable as >> they should be. > > Right -- and that is a bug. This hits the two-faced issue on the head: it's a bug if you look at this with ObjC in mind, it's an essential shortcoming if you look at it with Python in mind. Bob said (at some point in the past of this discussion) something to the effect that someclass.somemehod is a selector. If you view it from that angle then the current behavior is a bug. My initial thought (with my Python hat on) was that someclass.somemethod is either a class method or an unbounded instance method. Then this isn't a bug but a shortcoming that can't be overcome. -- 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 |