• 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: CGDisplayCapture() & CGShieldingWindowLevel()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGDisplayCapture() & CGShieldingWindowLevel()


  • Subject: Re: CGDisplayCapture() & CGShieldingWindowLevel()
  • From: Don Murta <email@hidden>
  • Date: Fri, 24 May 2002 15:53:29 -0600

hmm it worked fine for me. You may wish to check out the CocoaGL
(fullscreen) stuff at apple's source site, idevgames.com and
www.fruitz-of-dojo.de (quake source) as these were references I used to
get a fullscreen windowed context working. But something along the
lines of:

window = [[MyWindow alloc] initWithContentRect:[[NSScreen
mainScreen] frame]

styleMask:NSBorderlessWindowMask

backing:NSBackingStoreRetained
defer:NO
screen:[NSScreen
mainScreen]];
[window setLevel: CGShieldingWindowLevel()];
[window makeKeyAndOrderFront: nil];

should work.
don

On Friday, May 24, 2002, at 03:06 PM, Allan Odgaard wrote:
> I'm going crazy with this fullscreen stuff...
>
> According to the tutorial at
> http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000020.php
> then I should be able to get a window covering the full screen by
> calling setLevel on the window, with the result of
> CGShieldingWindowLevel() as argument.
>
> This does not work for me -- the menubar still appear!
>
> If I call CGDisplayCapture() first, then I do get a shielding window
> which cover the menubar, *but* my window won't go in front of this one,
> exactly as a previous post on this list explains
> (http://cocoa.mamasam.com/COCOADEV/2001/09/2/13278.php).
>
> So it seems I have to resort to calling HideMenuBar() from the Carbon
> API, but this disgruntle me a bit, because I'd like to think that I
> could achieve my goal without having to use the MacOS 9<->10 transition
> API, which I consider Carbon to be (but maybe that view is wrong?)...
> also, it would be nice to know wether the tutorial over at
> CocoaDevCentral has worked for others?
_______________________________________________
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: 
 >CGDisplayCapture() & CGShieldingWindowLevel() (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: NSTextField Attributes
  • Next by Date: Re: NSTextField Attributes
  • Previous by thread: CGDisplayCapture() & CGShieldingWindowLevel()
  • Next by thread: Re: CGDisplayCapture() & CGShieldingWindowLevel()
  • Index(es):
    • Date
    • Thread