Command Line Cocoa Problems

Lachi999

Registered
Gday,

I have been using the vtk (www.vtk.org) libraries and when i write a command line program that calls these libraries i get the following problem.

I start the program from the console with ./VTKtest and the program creates a cocoa window with the visualisation in it. All good.

If i type a keyboard character that i want to be captured by the cocoa window it gets sent to whichever application is behind the cocoa window. I cant select the cocoa window if i use expose. I have made sure that the window has focus and so im pretty certain the error lies in the way i am starting the program. Is there a way to transfer control to the window programatically if i create it from a command line program or do i have to do something else, or does it sound like an error in the way that the vtk libraries are creating the cocoa window.

Any help would be appreciated.

Thanks

Lachlan
 
Back
Top