[Pyobjc-dev] Xcode 3 Python NSView subclass template
Brought to you by:
ronaldoussoren
|
From: Johannes S. <lgo...@go...> - 2008-06-12 12:46:57
|
Pyobjc newbie here. Im trying to draw on a custom view. Here's what i do: Create Cocoa python application Create Python NSView subclass (I named it StretchView) Go to interface builder, add a custom view, change its class to StretchView in the identify inspector. Now when i run the application i get this errors in the debugger console: Unknown class 'StretchView' in nib file, using `(null)' instead. Unknown class `StretchView' in nib file, using `NSView' instead. As a result, the StrechView's drawRect_() method never gets called. Doing the same steps, but using Cocoa Application and Objective-C NSView subclass results in expected behaviour. I am using the pyobcj version, that shipped with Leopard. Any hints/advices? Johannes Scholz |