Re: [Pyobjc-dev] ScreenSaver Example
Brought to you by:
ronaldoussoren
From: Jason T. <cat...@ma...> - 2003-11-05 00:13:10
|
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 And with the released pyobjc 1.0, it was just crashing on me after the loading line. Here is a copy of my pyobjc screen saver without a nib. http://illadvised.com/~jason/SillyBallsSaverNoNib.zip FYI: I found several ObjC screensaver projects which use Xcode/Project Builder that have no principleClass set. Not sure if that would make any difference, but ScreenSaver bundles don't seem to be like prefPane bundles in that you don't need to set the principleClass. Thanks, - Jason T. On Nov 4, 2003, at 2:15 PM, Ronald Oussoren wrote: > > On 4 nov 2003, at 20:23, Jason Toffaletti wrote: > >> 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. > > I wouldn't know why you couldn't get rid of the NIB file. You'd have > to inherit your principleClass from the right superclass (not > AutoBaseClass, but a real Objective-C class), but that should be it. > > Ronald > > > > ------------------------------------------------------- > 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 |