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

Fwd: Screenshots using Cocoa


  • Subject: Fwd: Screenshots using Cocoa
  • From: Jesus De Meyer <email@hidden>
  • Date: Sun, 25 Sep 2005 20:25:16 +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
  • Prev by Date: Re: CoreData question
  • Next by Date: Re: Screenshots using Cocoa
  • Previous by thread: Re: Screenshots using Cocoa
  • Next by thread: Additional Favicon info using WekKit
  • Index(es):
    • Date
    • Thread