Re: Embeding a view into another application
Re: Embeding a view into another application
- Subject: Re: Embeding a view into another application
- From: Uli Kusterer <email@hidden>
- Date: Fri, 16 Mar 2007 23:07:27 +0100
Am 16.03.2007 um 19:53 schrieb Scott Brooks:
I have a webkit plugin that fork/exec's a child process, and in the
child
process I want to call
[NSOpenGLContext setView: MyWebKitView]
I tried getting the windowref from the plugin and passing it into
the child
process and then
[[NSWindow alloc] initWithWindowRef: windowref]
but it is always returning null.
I'm thinking it may be a permissions issue since it's a seperate
process, but
I hope not, or that there is a way around it.
Not possible. It would be a huge security risk to let one app mess
with the address space of another, not to mention defeat memory
protection, which wouldn't be able to tell that from a memory trasher.
What are you trying to do? Why do you need to fork/exec? Maybe we
can offer a solution that avoids the fork?
If you have to fork, you could do a client/server relationship
between the plugin and the helper app, putting the parts that need to
use the window in the plugin, and the rest in the other app, and then
transfer data between the two? There's also always shared memory if
you have lots of data to transfer.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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