void forwardCurrentKeyEventToHost (Component* comp)
{
NSWindow* win = [(NSView*) comp->getWindowHandle() window];
[[win parentWindow] makeKeyWindow];
[NSApp postEvent: [NSApp currentEvent] atStart: YES];
} #if JUCE_MAC
bool keyPressed (const KeyPress& kp)
{
return false;
// If we have an unused keypress, move the key-focus to a host window
// and re-inject the event..
//forwardCurrentKeyEventToHost (this);
//return true;
}
#endif
OK, so it appears that there may be a bug with Mac OS X 10.5, 64-bit, and Objective-C unloading. I've tried my plug-in on a clean Mac OS X 10.6 machine, with the latest 3.x Reaper 64-bit beta, and it works fine. Same plug-in, same version of Reaper, on a 10.5 machine, and it crashes during the call to _unload_image.
Now, I've found various references peppering the 'net about this bug (such as http://web.archiveorange.com/archive/v/ ... NgmkEQX78z ), but no concrete "This is a know bug in Apple's 10.5 codebase" reference. If this is the case though, I'm happy to lay down a 64-bit VST support requires Mac OS X 10.6. Has anyone heard of such a bug?
Users browsing this forum: No registered users and 2 guests