Re: Screenshots using Cocoa
Re: Screenshots using Cocoa
- Subject: Re: Screenshots using Cocoa
- From: Stefan Pantke <email@hidden>
- Date: Sun, 25 Sep 2005 20:46:42 +0200
Am 25.09.2005 um 20:40 schrieb Daniel Jalkut:
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.
That's another reason, why I wouldn't like to use the
Clipboard. Writing a file and reading it in, will most
likely not be fast enough...
Do we really have no simple API for screenshots?
_______________________________________________
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