Re: [Pyobjc-dev] [ pyobjc-Bugs-836247 ] NSWindow.contentRectForFrameRect_styleMask_ not a class meth
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-11-05 16:32:16
|
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 -bob |