firebreath events window plugin mouse keyboard mac os - macos

How do I connect to the ois library firebreath plugin in Mac OS?
I have pluginwindowmac, want to track mouse, keyboard, joystick.
made as to windows:
FB::MessageWindow* messageWindow = new FB::MessageWindow();
mParamList.insert(std::make_pair(std::string("WINDOW"), messageWindow->getHWND()));
mInputManager = OIS::InputManager::createInputSystem(mParamList);
messageWindow->getHWND() - no in mac os

I don't have any idea what the OIS library is expecting, but I can tell you that HWND is a windows type, so there will certainly never be a getHWND that works on mac os.
If what you need is a NSWindow then I'm afraid you're out of luck. The only way to get events in Mac OS in an NPAPI plugin is through the browser, which FireBreath exposes through its event system.

Related

How to access tag in SWT Dialog for Mac OS

I'm developing Mac OS Environment.
I am writing an SWT Dialog, but when I open the dialog, I cannot access the tags supported by Mac.
How do I keep a list of files when I click a tag after opening a dialog with SWT?
SWT does not support Mac OS Tag access.

AVKit in OSX 10.8

We're developing an OSX app that have to be supported by OSX 10.7 to 10.9. We're currently using QTKit and QTMovieView to show videos, but when trying to upload a new version recently we got this error message:
Deprecated API usage. Apple no longer accepts submissions of apps that use QuickTime APIs.
We have also tested to set the Base SDK to 10.8, but same result there.
And changing to AVKit and AVPlayerView does not work for version prior to 10.9.
So is there a way to use AVKit for versions prior to 10.9 or some way to publish an app with QTKit?
You can't use AVKit on OS X versions prior to Mavericks.
But AVKit is a very small framework that only consists of a player view that has some advanced features out of the box (e.g. chapter navigation, selection & trimming, ... - similar to QTMovieView).
If your app doesn't require those features, you can easily implement a view with simple playback functionality with AVFoundation-only classes (AVFoundation was introduced with OS X 10.7).
Instead of AVPlayerView, you can use a combination of AVPlayer & AVPlayerLayer.
There is some Apple sample code that shows how to build a DIY player view here:
https://developer.apple.com/library/mac/samplecode/AVSimplePlayerOSX/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011060
This custom player view supports:
Play/Pause
Rewind
Playback progress
Fast forward
Volume control

Is there any way to enable MacOS Lion native full screen support of Adobe Air Apps?

There's only standard and none options for , but both don't support the new full screen feature from lion.

Smart Notification Window under Mac OS X

I am developing an application for Mac OS X. In this application, I need to implement "smart notification window". What I mean by this term.
Here some screenshots:
In the app I develop, such "smart notification" will be appear under system bar icon.
If you work on a Mac you might notice a similar windows.
Does anybody has some code tutorial or examples of such "windows" draw.
Working in XCode, Cocoa Environment.
See MAAttachedWindow from Matt Gemmel:
http://mattgemmell.com/source
You'll have to scroll down a bit...

Missing QMenuBar in Qt4 apps on OSX

My Qt4 apps with a QMenuBar show up fine under Linux and Windows, but will not display under OSX. I have a Xeon 64bit Mac Pro with OSX 10.5.7. I'm using Qt 4.5.2. I've tried building my apps with qmake -spec macx-g++ and using an xcode project. Neither seem to work. Any help is much appreciated.
Thanks,
Regis
Your menu should be displayed in the top-level Mac menu. A full desktop screenshot and a code sample would help.
QMenuBar on Mac OS X
QMenuBar on Mac OS X is a wrapper for using the system-wide menu bar. If you have multiple menu bars in one dialog the outermost menu bar (normally inside a widget with widget flag Qt::Window) will be used for the system-wide menu bar.
QMenuBar documentation

Resources