• 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: OpenGL and the Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL and the Dock


  • Subject: Re: OpenGL and the Dock
  • From: Ethan John <email@hidden>
  • Date: Thu, 5 Feb 2004 19:51:16 -0800

Depending on the behavior that you want, you can use NSWindow's setMiniwindowImage:(NSImage *)anImage to do this. You could grab a snapshot of your OpenGL view using something like this:

[yourView lockFocus];
[instanceOfABitmapImage initWithFocusedViewRect:[theView bounds]];
[yourView unlockFocus];

Hope that helps.

On Feb 5, 2004, at 6:03 PM, Benjamin Blonder wrote:

I have a window with a NSOpenGLView in it. When I minimize the window to the dock, the miniwindowImage shows a blank spot where the OpenGL stuff should be (I also can't properly print the window for what I'm assuming is the same reason.) My guess is that the OpenGL drawing happens at a different level than the widget-drawing and so it doesn't get captured.

I was hoping someone familiar with OpenGL and Cocoa could show me a good way to capture the OpenGL view's contents and set it as the window's mini-image.

Thanks in advance!
_______________________________________________
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: 
 >OpenGL and the Dock (From: Benjamin Blonder <email@hidden>)

  • Prev by Date: Re: base64
  • Next by Date: RE: Are we still supposed to register Creator code (bundle signature) for OS X app?
  • Previous by thread: OpenGL and the Dock
  • Next by thread: newbie design question
  • Index(es):
    • Date
    • Thread