Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embeding a view into another application



On March 16, 2007 4:07:27 pm Uli Kusterer wrote:
>   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

I am embedding a game as a plugin.  The reason for fork/exec is that right now 
the code is not re-entrant(which will be fixed eventually, but it's a really 
big code base, so we are looking for a quick fix for now)

The view is going to be rendering an opengl app, so a pipe is not really going 
to be able to work, same with shared memory.

The real solution to my problem is to go through the mountain of code that was 
never built with re-entrancy in mind and fix it, but I was hoping to avoid 
that for now.

Thanks
Scott Brooks
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Embeding a view into another application (From: Scott Brooks <email@hidden>)
 >Re: Embeding a view into another application (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.