Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 189931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:12:50+00:00 2026-05-11T16:12:50+00:00

Greetings! I’m currently porting a web browser plugin from Win32 to MacOSX. One of

  • 0

Greetings!

I’m currently porting a web browser plugin from Win32 to MacOSX. One of the features of the plugin is that when the plugin is loaded, it spawns a separate process that serves as the “engine” of the plugin and executes drawing operations into the window of the plugin (specifically, by attaching an OpenGL context to the parent process’s window and executing OpenGL rendering commands into that context). We do this because the plugin is typically loaded as a thread within the browser process, so crashes in the plugin would take down the whole browser. By partitioning the ‘heavy lifting’ into a separate process and keeping the plugin code very slim, we can protect users against such crashes.

I’d like to preserve this child-process-renderer architecture on MacOSX, but I’ve heard a nasty rumor (related to the Google Chrome web browser) that MacOSX doesn’t allow a process to hand access to its windows to another process. My own search in this space has been inconclusive; if anyone has any knowledge of this problem and could either provide some advice on how to accomplish this goal or a more conclusive “can’t be done,” it would be extremely helpful.

Thank you for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:12:50+00:00Added an answer on May 11, 2026 at 4:12 pm

    I was investigating a solution to this almost a year ago. I started a few threads on the apple mailing lists:

    http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg08056.html

    http://www.mail-archive.com/quartzcomposer-dev@lists.apple.com/msg01878.html

    http://lists.apple.com/archives/mac-opengl/2008/May/msg00099.html

    I had to revert to a solution which used CGWindowListCreateImage which took a screen grab of the opengl process window and convert it to a bitmap for display in the main process window. This is far from effeicient since pixel data is transfered from video ram to system ram.

    I also tried a floating window solution. The opengl process window floated above the main process window and respond to mouse movements from the main window. But I had issues with dragging lag and window z order.

    You would think NSWindowSharingReadWrite would do what you require, but doumentation/examples back then were practically non existent.

    But maybe things have changed in the last year. Keep me posted if you find anything new !

    Good luck

    JC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, currently I am refactoring one of my programs, and I found an interesting
Greetings, I've been working on a web-interface for some hardware that uses an 8-bit
Greetings, My app name(the one that appears on the home screen) contains a special
Greetings, I'm trying to find a way to 'unbind' a socket from a particular
Greetings! I am trying to check directory write-permissions from within a Windows MFC/ATL program
Greetings, I have a particular object which can be constructed from a file, as
Greetings all Currently working on assessing a project, and wondered if there was a
Greetings all, I've been told by co-workers that the GET method is different in
Greetings! I have an issue here that i can't find. I am getting a
Greetings, I'm having problem invoking a richTextBox from a worker thread in C#. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.