• 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: Capture screen in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Capture screen in Cocoa


  • Subject: RE: Capture screen in Cocoa
  • From: "San Saeteurn" <email@hidden>
  • Date: Fri, 01 Sep 2006 18:30:47 -0700

well, you can use the screencapture commnd line tool. For information of screencapture, go to the terminal and type "man screencapture".
You can run this from your application using NSTask or the UNIX system calls fork() and exec(). Or the general wrapper for those "int system(char **path)".


Example:
int returnCode = system("/User/Applications/iTunes/Content/MacOS/iTunes");

-San Saeteurn


From: Alexander Cohen <email@hidden>
To: Apple CocoaList <email@hidden>
Subject: Capture screen in Cocoa
Date: Fri, 01 Sep 2006 21:06:19 -0400

Is there a way to capture an image of the screen from Cocoa?

AC
_______________________________________________
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


_______________________________________________
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


References: 
 >Capture screen in Cocoa (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Capture screen in Cocoa
  • Next by Date: Re: Capture screen in Cocoa
  • Previous by thread: Capture screen in Cocoa
  • Next by thread: Re: Capture screen in Cocoa
  • Index(es):
    • Date
    • Thread