Re: Isolated process for each NSDocument of my app
Re: Isolated process for each NSDocument of my app
- Subject: Re: Isolated process for each NSDocument of my app
- From: Jens Alfke <email@hidden>
- Date: Thu, 13 Jun 2013 09:18:07 -0700
On Jun 13, 2013, at 3:52 AM, Daniele Margutti <email@hidden> wrote:
> In this case each process is isolated from the others as like with Safari.
> What’s the best way to accomplish it on OS X?
There is no [public] support for running parts of the GUI of an app in separate processes. It requires things like sending events over IPC and maintaining shared-memory window/view buffers. I’m somewhat familiar with the way Chrome does it, having worked on Chrome for a few years, and it is very complex and messy. (You can check out the Chromium source and look through it if you want.) I’m sure Safari’s implementation is too, unless they’re using some hypothetical private AppKit APIs for cross-process events/views.
The short answer is that this would be very difficult to do, and you’ve have to become intimately familiar with XPC, the low levels of AppKit event handling, CoreGraphics, shared memory, etc. etc.
On the plus side, if you accomplished it and made it into a reusable framework, you’d be a hero.
—Jens
_______________________________________________
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