ScreenSaver with a subview won't preview
ScreenSaver with a subview won't preview
- Subject: ScreenSaver with a subview won't preview
- From: Steve Milano <email@hidden>
- Date: Mon, 11 Aug 2003 23:08:19 -0700
Are screen effects modules really the black art they seem to be sometimes?
I was messing around with some code from the book "Cocoa Programming"
by Anguish, Buck, & Yacktman, and was able to adapt the "LotsOfWords"
application from Appendix B to a neat screen saver, er, effects,
module. LotsOfWords shows random words from a given list in random
sizes and locations, and translated nicely as a screen effect. If
you're curious, you can see the result here:
http://do-boy.com/downloads/vocabsaver.sit (236 K)
With a few adjustments, I was able to take the class MYWordView and
set it as a subview of the ScreenSaverView. In doing so, I came
across a problem that's plagued me every time I've used a subview in
a screen saver: The preview doesn't show the screen saver, just a
black rectangle. In this case, it turned out to be better to show a
static preview anyway, as it takes a while to load the word list, but
usually this is not so desirable.
So is there a way to have the preview also show the subview, as the
actual screen saver does?
Thanks for any help.
Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.