• 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: Screenshots using Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screenshots using Cocoa


  • Subject: Re: Screenshots using Cocoa
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Sun, 25 Sep 2005 13:13:52 -0700


Search for 'Screen snapshot example code posted' in the list archives on Aug 13th. Mike Paquette posted a OpenGL-based screenshot example. This is vastly faster and more reliable than using the CGDisplay base pointer approach.


-tim


On Sep 25, 2005, at 11:47 AM, Daniel Jalkut wrote:

Searching the archives produces a link to this example project, which seems to work, and doesn't obliterate the clipboard or rely on the private

http://cs.northwestern.edu/~josha/code.htm

This seems like a much better approach.

Daniel

On Sep 25, 2005, at 2:40 PM, Daniel Jalkut wrote:



On Sep 25, 2005, at 1:54 PM, Jesus De Meyer wrote:


Use NSTask to launch /bin/screencapture with an argument of cx (clipboard and no sound).

Then use NSImage to get the image from the pasteboard.



It's rude to obliterate the user's clipboard. Sometimes users dangerously rely on the clipboard to preserve data for short periods of time. If an obliterated my clipboard without my selecting "cut" or "copy" then I'd probably never run that application again.


Daniel

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


This email sent to email@hidden



_______________________________________________ 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



_______________________________________________ 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
References: 
 >Screenshots using Cocoa (From: Stefan Pantke <email@hidden>)
 >Re: Screenshots using Cocoa (From: Jesus De Meyer <email@hidden>)
 >Re: Screenshots using Cocoa (From: Daniel Jalkut <email@hidden>)
 >Re: Screenshots using Cocoa (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: using zlib on OS X
  • Next by Date: Re: using zlib on OS X
  • Previous by thread: Re: Screenshots using Cocoa
  • Next by thread: Re: Screenshots using Cocoa
  • Index(es):
    • Date
    • Thread