• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreGraphics, full screen, and NSMovieView issue...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreGraphics, full screen, and NSMovieView issue...


  • Subject: Re: CoreGraphics, full screen, and NSMovieView issue...
  • From: Cyril Godefroy <email@hidden>
  • Date: Thu, 21 Mar 2002 07:51:40 +0100

Apparently you're trying to make a full screen movie, right?

First of all, you should look at Quicktime API. There's a function for that.

Second thing is QTKit at sourceforge. Though not packaged as a release, the latest version (available through CVS) has the code I have been using to make a FS movie in another non-published app which worked. This code is not used, rather commented, but it shouldn't be hard to uncomment it.
I'll have a look at it today to update the feature, but here's the code:

- (void)goFullScreen:(id)sender {
int windowLevel;
NSRect screenRect;

windowLevel = CGShieldingWindowLevel();
screenRect = [[NSScreen mainScreen] frame];
fsWindow = [[[NSWindow alloc] retain] initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO screen:[NSScreen mainScreen]];

fsMovieView = [[[LalaFSView alloc] retain] initWithFrame:screenRect withParent:self];
[fsMovieView showController:NO adjustingSize:NO];
[lalaMovieView setMovie:nil];
[fsMovieView setMovie:lalaMovie];
[NSCursor hide];
[fsMovieView start:self];
[fsWindow setContentView:fsMovieView];
[fsWindow setBackgroundColor:[NSColor blackColor]];
[fsWindow setLevel:windowLevel];
[fsWindow makeKeyAndOrderFront:nil];
}

(the LalaFSView is a custom NSMoviezView with a special keydown and a special mousedown).

Hope it helps.

Cyril

On Thursday, March 21, 2002, at 01:35 AM, Morgan Aldridge wrote:

My apologies for the double post to those who are subscribed to both the MacOSX-dev mailing list and this one. I posted this subject to MacOSX-dev about a week ago with little luck. I thought I'd expand on it slightly and post it to this list instead.
Okay, I have an app which is nearing release and I have run into one issue, it's only the second one I've written in Cocoa so please forgive me if the problem turns out to be really a stupid mistake on my part. Here's the issue: when I go into full screen mode I first call CGDisplayCapture() to grab the display, then i create my window and set it's level to the value returned by CGShieldingWindowLevel(), then i set the content view to that which displays what I need in full screen mode. All sounds well and good, right? Well, my content view contains an NSMovieView, and this code works perfectly if I have not loaded a movie into my NSMovieView yet (or i just don't set the content view), if I have it just doesn't show the window (I'm assuming it's not being brought forward or something). I've made sure that the display is being captured correctly, that the window is indeed being created, that the window's level is being set to the sheilding level, and that the content view is being set, but I still can't figure out why it's not working.
......

Morgan Aldridge
---
__ __ __ _ _ _ _
/ |/ |__ _ _ ___ __ __ _ / | |_| |_ _'='_| |___ ___
/ |o | '_|o |o \| | |/ ^ | |o | '_| |o |o | o_|
/_/|_/|__|__|_| \_ |_._|_|__|_/|_|_|_._|_| |_|_._|_ |__/
/__/ email@hidden /__/
_______________________________________________
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.
_______________________________________________
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.

References: 
 >CoreGraphics, full screen, and NSMovieView issue... (From: Morgan Aldridge <email@hidden>)

  • Prev by Date: RE: NSBitmapImageRep & .rgb? .sgi?
  • Next by Date: Memory problems
  • Previous by thread: CoreGraphics, full screen, and NSMovieView issue...
  • Next by thread: Newbie question cont.
  • Index(es):
    • Date
    • Thread