Re: Capture Window/View created through NSTask
Re: Capture Window/View created through NSTask
- Subject: Re: Capture Window/View created through NSTask
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 6 Jul 2008 01:11:37 +0200
Le 6 juil. 08 à 00:43, Michael Moore a écrit :
I'm hoping someone might be able to assist me with this question.
I have a Cocoa application, with an embedded command-line tool in the
Resources folder. This tool is from an outside source, and I have no
source code available for it. When launched, it creates its own
window,
and displays a variety of content. I launch this tool via NSTask
(utilizing NSPipe to communicate with the tool via STDIN, STDOUT, and
STDERR).
What I am hoping to do is find a way to capture the NSWindow/NSView
created by the tool and embed it in a Custom View in my nib. Is
there a
way to do this?
Many thanks,
Michael
If you mean create an image from the window contents, you may have a
look at the SonOfGrab sample (http://developer.apple.com/samplecode/SonOfGrab/
) that contains some sample to grab the content of a any window
(even in other processes). Note that it requires 10.5.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden