Re: Screenshots using Cocoa
Re: Screenshots using Cocoa
- Subject: Re: Screenshots using Cocoa
- From: Stefan Pantke <email@hidden>
- Date: Sun, 25 Sep 2005 20:26:40 +0200
Am 25.09.2005 um 19:54 schrieb Jesus De Meyer:
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.
That should help you getting started.
Thx! I'll try.
Since I need to take a sequence of screenshots as fast as
possible, I wonder if creating a new process is fast enough:
>>>
x2:~ sp$ time screencapture cx
real 0m0.841s
user 0m0.401s
sys 0m0.065s
x2:~ sp$ time screencapture cx qq
real 0m0.843s
user 0m0.399s
sys 0m0.067s
<<<
Does someone know of a sample, which takes a short much faster?
[BTW: I found screencapture here: /usr/sbin/screencapture ]
_______________________________________________
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