• 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: Programmatically taking a screenshot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically taking a screenshot


  • Subject: Re: Programmatically taking a screenshot
  • From: Robert Fischer <email@hidden>
  • Date: Tue, 11 Mar 2003 17:11:57 +0100

On Friday, March 7, 2003, at 06:59 PM, Jesus De Meyer wrote:

I was wondering if anyone knows how you can tell your app to take a screenshot when for example an error message happens. Are there any API's available for this? Or do I need to use Carbon CGrafPorts and stuff?

Have a look at /usr/sbin/screencapture (since 10.2). You may call it in a NSTask to create a PDF file with the snapshot, or let screencapture fill the pasteboard (screencapture -c) with NSPICTPboardType data, which you then may use for your own purpose.


Sincerely,

Robert

--
--- - .-. -- --
--- / \ ---- tin:b Software
.-. / \ --- .-. __o .-. (i)
/ \ / \ / \ _`\<,_ / \ Robert Fischer
/ \ / \ / \ (*)/ (*) / `---------------
/ `---' `-' `-----------'
_______________________________________________
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: 
 >Programmatically taking a screenshot (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Renaming Writable media
  • Next by Date: Re: Toolbar hide/show button
  • Previous by thread: SIGINT (was Re: create NSWindow in Core Foundation tool)
  • Next by thread: Unicode and NSTextField (newbie question)
  • Index(es):
    • Date
    • Thread