inter process NSView sharing

2008-05-23 Thread Jonathan Cochrane
Hi I have 2 applications, one is written in java, the other in C. For reasons I wont go into to I need to have the C application perform hardware accelerated opengl rendering to a window created by the Java application. This is currently working on Windows. On this platform the java application

Re: inter process NSView sharing

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 9:59 AM, Jonathan Cochrane [EMAIL PROTECTED] wrote: Now, on OSX the java app gets a NSView/cocoaviewref. Is there some member of NSView similar to the HWND on windows that I can pass to my C process? The C process can then create a hardware accelerated opengl rendering

Re: inter process NSView sharing

2008-05-23 Thread Jonathan Cochrane
apologies if ive been misunderstood, but no, i havent taken a pointer from the java app and passed it to the c app, i know that wont work. what i was asking if there something similar to the MS Windows HWND, or a window id, i could pass between processes, not a pointer ive just had a look at

Re: inter process NSView sharing

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 11:14 AM, Jonathan Cochrane [EMAIL PROTECTED] wrote: apologies if ive been misunderstood, but no, i havent taken a pointer from the java app and passed it to the c app, i know that wont work. Ok, good. :) what i was asking if there something similar to the MS Windows

Re: inter process NSView sharing

2008-05-23 Thread Ken Thomases
On May 23, 2008, at 10:14 AM, Jonathan Cochrane wrote: ive just had a look at 'son of a grab' source and it seems there is the concept of a CGWindowID, maybe this is what i need ? below is an excerpt from the NSWindow Class Reference: These constants and data type represent the access