• 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
CoreGraphics, full screen, and NSMovieView issue...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreGraphics, full screen, and NSMovieView issue...


  • Subject: CoreGraphics, full screen, and NSMovieView issue...
  • From: Morgan Aldridge <email@hidden>
  • Date: Wed, 20 Mar 2002 19:35:10 -0500

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.
The method I'm using was originally based on that presented in Brian Christensen's "How to Make a Full Screen App" posted on CocoaDevCentral.com. He was gracious enough to provide me with the original source to the application described in the tutorial so that I might ensure that his version worked on my system and so I could make comparisons for debugging purposes. Sadly, except for the fact that my content view contains an NSMovie view I can't find any possible causes.
I have considered using a method similar to whatever Apple's DVD Player application uses, i.e. hiding the menu bar and Dock, but have stayed away from it for two reasons. First, I can't find any documentation on how to go about hiding the menu bar and dock (although it's possible they just move their window to the menu bar's level). Second, I need to be able to change the resolution of the monitor without affecting the rest of the system and applications.
My development/test system is a 2000 PowerBook G3 (Pismo) with Mac OS X 10.1.3, 320MB RAM, and the latest Dev Tools. That shouldn't make too much of a difference, but I've noticed some inconsistencies with running some applications on my system as opposed to on others'.
I would greatly appreciate any bits of wisdom you all might be able to provide me with. If you don't have any ideas as to the cause of the problem, how about some general debugging suggestions when trying to deal with issues of this nature. Thanks for any assistance you can provide.

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.

  • Follow-Ups:
    • Re: CoreGraphics, full screen, and NSMovieView issue...
      • From: Cyril Godefroy <email@hidden>
  • Prev by Date: Quicktime for Java And Cocoa
  • Next by Date: Newbie question cont.
  • Previous by thread: Quicktime for Java And Cocoa
  • Next by thread: Re: CoreGraphics, full screen, and NSMovieView issue...
  • Index(es):
    • Date
    • Thread