The REBOL OSX port has been moving along... and we were hopeful to get some of you early testers a prototype by this weekend. However, we've run into a problem. Perhaps some of you OS X experts might know the solution. Here is a discussion of the problem:
Short description: The REBOL windows never get the "focus".
Long description: OS X uses the SelectWindow() function to make a window active, bringing it to the front (top window) and allowing it to become the focus of keyboard and other events. However, for some reason, we cannot get this to happen.
We do see mouse events without a problem, but the window never moves to the front, nor does it ever receive keyboard events.
We have searched far and wide in the OSX developer documentation, but have yet to find a solution. A general search of the web does not provide an answer either.
A short example: Here is a small C file that shows the problem:
See comments at the top.
A few details:
The program Carbon based.
The program is run from the Terminal shell (which may factor in, we don't know).
The program is not an OSX "app". It is only a GCC built executable program.
Adding a SetUserFocusWindow() does not fix the problem.
The program contains no menus or other Carbon GUI elements (which should not matter, but again we don't know that for sure).