Question about NSView's -enterFullScreenMode:withOptions: method

  • Hi all,

    I have an QTMovieView that I would like to display fullscreen across
    multiple displays. The following code does not work:

    FullScreen_Options = [NSDictionary dictionaryWithObject: [NSNumber
    numberWithBool: YES]  forKey: NSFullScreenModeAllScreens];
    [DisplayMovieView enterFullScreenMode: [NSScreen mainScreen]
    withOptions: FullScreen_Options];

    I would expect a stretched-out version of the movie displayed across
    both the monitors on my test system.  Instead, the movie displays on
    the mainScreen only.  (Note:  The movie view's "preserve aspect ratio"
    attribute is set to NO with the Interface Builder)

    I changed the code to the following:

    [DisplayMovieView enterFullScreenMode: [[NSScreen screens]
    objectAtIndex: 1]  withOptions: FullScreen_Options];

    and got the movie to display only on the second monitor.  Changing the
    screen argument to "nil" resulted in no switch to fullscreen.

    So:  How do I specify a screen that will allow me to display my movie
    across all my monitors?

    thanks in advance.

    douglas
  • On 06 Dec 07, at 10:51, douglas a. welton wrote:
    > I have an QTMovieView that I would like to display fullscreen across
    > multiple displays.
    <...>
    >
    > So:  How do I specify a screen that will allow me to display my
    > movie across all my monitors?

    That's not always going to be possible. Consider a laptop user who's
    got an external monitor attached, or even a desktop user who's got two
    displays of different sizes. Their combined desktop isn't rectangular,
    so there's no way to create a view that fills them without potentially
    putting a lot of the view offscreen.
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today