Le 6 juil. 08 à 01:28, Michael Moore a écrit :
No, I mean actually capture the fully functional NSView displayed - so I can interact with it, etc.For example, imagine taking an OpenGL game and embedding the game in a custom nib within a custom application.On Jul 5, 2008, at 7:11 PM, Jean-Daniel Dupas wrote: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, andSTDERR). What I am hoping to do is find a way to capture the NSWindow/NSViewcreated by the tool and embed it in a Custom View in my nib. Is there away to do this? Many thanks, MichaelIf 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.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]