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 Mar 16, 2007, at 11:53 AM, Scott Brooks wrote:

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.

Generally objects like windows, views, ..., are only valid within their own address space since they are pointers to opaque structures and so refer to a piece of memory within that particular address space.


steve

_______________________________________________

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>)



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.