Re: [Pyobjc-dev] ScreenSaver Example
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-11-07 15:04:45
|
On 7 nov 2003, at 15:55, Bob Ippolito wrote: > > On Nov 7, 2003, at 9:26 AM, Ronald Oussoren wrote: > >> >> 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! > > Also, please make sure to spell it correctly, otherwise it won't work. > it's NSPrincip*al*Class, sans asterisks. :-(. Luckily I did spell it correctly in the plist. BTW. Only adding NSPrincipalClass didn't work, NSMainNibFile was required. Ronald |