Re: Programmatically taking a screenshot
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.