Re: [Pyobjc-dev] ScreenSaver Example
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-11-07 14:26:27
|
On 5 nov 2003, at 1:13, Jason Toffaletti wrote: > Well I tried that with the screensaver, and I get this error with > pyobjc from CVS. > > loading python screen saver > 2003-11-04 15:51:52.369 System Preferences[9755] *** > -[_PyObjC_BundleHelper_SillyBalls_ initWithFrame:isPreview:]: selector > not recognized I should have noticed this earlier, _PyObjC_BundleHeader_SillyBalls_ is an Objective-C class introduced by pluginbuilder. This class loads the Python interpreter and then loads your python code. For some reason this is picked up as the principle class. If I change the Info.plist of your NIB-less saver and include an NSPrincipleClass (SillyBalls) and NSMainNib (SillyBalls) key the saver works correctly, even though the NIB-file does not exist! Ronald |