Re: [Pyobjc-dev] ScreenSaver Example
Brought to you by:
ronaldoussoren
From: Jason T. <cat...@ma...> - 2003-11-04 19:23:35
|
The first error message "can't get principalClass for /Users/dinu/Library/Screen Savers/SillyBalls.saver" actually brings up an issue I had when creating the screensaver, because I was trying to get around using a nib file by specifying a principleClass. At the time it seemed like that should work...So, I am wondering if it is possible to get rid of the requirement of having to specify a nib file? I was told that Ronald would have something to say about this. Thanks, Jason T. > On Nov 4, 2003, at 2:33 AM, Dinu Gherman wrote: > >> Ronald Oussoren: >> >>> It works for me (TM). There's a buildplugin.py script in the >>> archive, run 'buildplugin build' and then 'open >>> build/SillyBalls.saver'. On Panther you'll get a message that the >>> saver should be installed first, and System Preferences will install >>> it for you. I don't know if this works on Jaguar, you may have to >>> install it manually (in ~/Library/Screen Savers). >> >> Ok, I've built it as you say, moved it into ~/Library/Screen Savers >> and >> get this when trying to select it on 10.2.8 (with PyObjC 1.0) from >> System >> Preferences: >> >> Failed to initialize bundle NSBundle </Users/dinu/Library/ >> Screen Savers/SillyBalls.saver> (loaded) >> >> The console says the following: >> >> 2003-11-04 11:27:00.027 System Preferences[2254] can't get >> principalClass for /Users/dinu/Library/Screen Savers/SillyBalls.saver >> loading python screen saver >> Traceback (most recent call last): >> File "/Users/dinu/Library/Screen >> Savers/SillyBalls.saver/Contents/Resources/SillyBalls.py", line 6, in >> ? >> from AppKit import NSMakePoint, NSMakeRect, NSBezierPath, NSColor >> ImportError: No module named AppKit >> >> Is the above a general problem with bundles that has been solved for >> 10.3 or is the lower part just a bug? >> >> Dinu >> >> -- >> Dinu C. Gherman - http://python.net/~gherman >> ...................................................................... >> "The best way to predict the future is to invent it." (Alan Kay) >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us help >> YOU! Click Here: http://sourceforge.net/donate/ >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |