ScreenSaverView with multiple displays
ScreenSaverView with multiple displays
- Subject: ScreenSaverView with multiple displays
- From: patrick <email@hidden>
- Date: Wed, 29 Dec 2004 15:09:56 -0800
I'm creating a screensaver, and I would like to be able to draw
something different on displays other than the primary. Through trial
and error, I've learned that initWithFrame() gets called for each
display, although it doesn't seem like any useful information is
passed into initWithFrame() or animateOneFrame() to help the developer
know which display is being used.
By using a counter in my ScreenSaverView and incrementing it each time
initWithFrame() is called (where isPreview is false) I am able to
count how many displays there are, and it seems like animateOneFrame()
is called in order of display: animateOneFrame() for display 1,
animateOneFrame() for display 2, and then back to 1 again, etc. So by
using another counter, I can [sort of] keep track of to which display
I'm drawing, though it doesn't seem like that great a way of doing
this, nor does it seem that foolproof.
Does anyone have any suggestions as to a better way of knowing a) how
many displays there are to begin with, and b) a good way in
animateOneFrame() to tell which display is being used?
Many thanks,
Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden