« MBS Filemaker Plugin,… | Home | iCloud and Push Notif… »

Windows Notifications


For next plugins, we add WinNotificationMBS class for 12.1pr5 soon. This class allows you to send a message from one application to another application. For example if you have two applications and one does background work, it could send notification to main application when some event occurs like the work is finished.

We use it here to talk between a main application and a sync application. When we start a sync, we launch the sync application which itself sends sync started notification and sync done notification. This way main application can show that in the GUI.

Also you can this on Windows to help with the two instances problem. If user has your application running and double clicks it again, Windows starts a second instance of your application. So your second instance could detect first instance with a mutex and send notification to first instance telling it to come to front.

Third this notifications are great for having an app for system tray menu and sending commands to a main application. So selecting preferences in a menu on the system tray would send notification to main application to show preferences window.

For Mac OS X you can use the NSNotificationMBS class for similar functionality.
19 02 12 - 12:08
four comments

Hmm….. The documentation on your website about NSNotification doesn’t say that this is also for inter-application communication. But good to know. For now I’m using raw AppleEvents.
Beatrix Willius (URL) - 20 02 12 - 09:54

NSDistributedNotificationCenterMBS is for inter application while NSNotificationCenterMBS is for inside your application.
Christian Schmitz (Email) (URL) - 20 02 12 - 10:51

Windows messages play a big role in Microsoft systems, this addition is more than welcome. I was wondering if in addition to send/receive user messages it would be possible to detect and handle messages sent the system like WM_TOUCH and WM_GESTURE available in the last tablet PCs. (apart these two many others are available and useful)
Marco Bosetti - 25 02 12 - 15:30

Well, this may be something we could check in future.
Christian Schmitz (Email) (URL) - 25 02 12 - 15:35


  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.