Re: Screensaver multiple monitor detect
Re: Screensaver multiple monitor detect
- Subject: Re: Screensaver multiple monitor detect
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 31 Oct 2001 17:03:52 +0100
On mercredi, octobre 31, 2001, at 12:44 , Tommaso Pecorella wrote:
Hi, I have a little problem.
I am writing a screensaver and I want to draw different things on the
monitor if I have more than one device.
Let me explain better: if the user has one monitor, then the saver act
normally, but if there are multiple monitors, I want to be able to draw
in a specific one or on all, but differently.
So my question is: how can I check on what monitor the saver is
actually running ?
NSWindow has a method to do so, but the ScreenSaver desn't have a
similar function (apparently).
Any help whould be very appreciated. Thank you, Tom ;-{))
What prevents you from using the same method by doing in one of your
ScreenSaver view subclass:
[[self window] theMethod ]
?