Article Preview
Buy Now
| Print: | |
| PDF: |
Feature
Third Party Plugins: Statusitems
Getting an icon in the top right of the Mac OS X menubar
Issue: 5.6 (September/October 2007)
Author: Christian Schmitz
Article Description: No description available.
Article Length (in bytes): 14,942
Starting Page Number: 31
RBD Number: 5611
Resource File(s):
5611.zip Updated: Friday, September 14, 2007 at 7:41 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
Recently I had a request for a time tracking application to add a fast profile switching feature, like the one found in Skype. Skype -- and also iChat -- allow the use of a global menu item to switch the users status.
How to do that?
Technically, the only possible way to get something in this menu is to use the NSStatusItem class from Cocoa. And the most complete set of classes which covers that for REALbasic are the classes in the Monkeybread Software REALbasic plug-ins. Of course you can do everything yourself by writing your own classes and sending objective C messages using the objective C runtime methods. But before you do that, you may consider to just use the plugins as they save you a lot of time in creating and debugging code.
Install the plug-ins into REALbasic so you have the NSStatusItemMBS class at hand from the Cocoa plugin part. This article is based on version 7.4 of the MBS Plugins. Of course a newer version may be better because of some bugs being fixed.
Integration in Application
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|











