• 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
Drag and Drop from NSOpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and Drop from NSOpenGLView


  • Subject: Drag and Drop from NSOpenGLView
  • From: "E. Wing" <email@hidden>
  • Date: Thu, 6 Apr 2006 17:35:10 -0700

I'm trying to implement drag-and-drop from an NSOpenGLView which will
result in a screenshot being taken from the OpenGL view and dropped to
wherever. I seem to have gotten the basics covered with the
glReadPixels, NSPasteboard, and dragImage. However, I am having
trouble with some of the details.

First, when I start dragging the view, the image does appear. However,
my image is totally opaque. I noticed that with shipping Cocoa
applications, the images are semi-transparent. What is the
easiest/best way to faithfully reproduce this affect?

Second, I have specified my type as NSTIFFPboardType. I notice that if
I drag to my desktop, a TIFF gets created. But I would prefer that a
PNG (or maybe JPEG) be created instead. I know that the built-in
screen capture in OS X writes to PNG, so it seems like there should be
an easy way.

Thanks,
Eric
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Library problem when deployed
  • Next by Date: Re: Pop up window ala msn messenger
  • Previous by thread: Library problem when deployed
  • Next by thread: Re: Drag and Drop from NSOpenGLView
  • Index(es):
    • Date
    • Thread