Building Mac Applications Using REALbasic 4.5 for Mac OS X
Pages: 1, 2, 3
Seeking Help
When you are moving to a new development platform, you always have this problem on knowing which function to use and what the parameters are for each function. Fortunately, REALbasic has done a very good job in helping programmers get started quickly.
For example, after I have typed the word "selectcolor," REALbasic immediately knows that this is a defined function and displays an information window telling me the expected parameter as well as the return type:
|
|
Similarly, whenever I start typing, REALbasic will anticipate the word that I intend to type. It will append an ellipse "..." after the word to signify that it has identified a list of possible words that I am going to type. For example, after I have typed the word "edit," I can press the Tab button to see a list of words that I can choose from. This is very much like the Intellisense in Visual Studio .NET. I find this feature very helpful, and it has no doubt eased my entry to Mac programming.
|
|
Another very helpful feature is its online Language Reference. Simply type a keyword, and you can view the explanation as well as sample codes. Best of all, you can drag and drop the sample codes (the dotted rectangle box) directly onto your application.
|
|
Deploying the Application
With the application built, it is now time to deploy it. REALbasic allows you to deploy your applications to be deployed as a:
- Mac OS 9 application
- Mac OS x application
- Windows application
To deploy the application, click on the File menu and select Build Settings.
|
|
You can select the various platforms that you want to deploy to and the detailed settings of each platform:
|
|
To build the application, select Build Application. If the build process is successful, you will see two icons on your desktop:
|
|
You can now run the application by double-clicking on the icon. Of interest is the EXE file, which is meant to run on Windows. I tried running the application on Windows 2000 Professional:
|
|
It works similarly to the way it works on the Mac platform. However, the user interface seems a little bit unpolished. I think I really cannot complain, though, since the application works as promised on Windows. For large projects, this feature is definitely useful, but I have yet to work on a moderately large-scale project to see if the multi-platform support is usable.
Summary
If you are an experienced Visual Studio (or Visual Studio .NET) programmer, you will definitely feel comfortable with REALbasic. The syntax of the language is very similar to Visual Basic, and the online help reference is a real lifesaver. REALbasic has also recently announced that it will release a version of REALbasic for Windows, which means that you are now use REALbasic on Windows and target Mac users at the same time. For more information, check out REALbasic announcement
Wei-Meng Lee (Microsoft MVP) http://weimenglee.blogspot.com is a technologist and founder of Developer Learning Solutions http://www.developerlearningsolutions.com, a technology company specializing in hands-on training on the latest Microsoft technologies.
Read more Developing for Mac OS X columns.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 8 of 8.
-
realbasic rocks
2002-11-11 13:20:33 anonymous2 [Reply | View]
I originally tried realbasic after reading an article about how easy it was to create interface dummies. That was three years ago and there was no Interface Builder. I thought I would dummy up an interface and test out the paradigm on some of the workers (I was creating a job tracker and I needed a little more robustness than filemaker).
After I created the interface I 'discovered' that RB has very easy connections into postgresql (or mysql). So I wired it up to test the concept. To my suprise there was enough speed to leave it alone. I never turned back. The only place that the speed was an issue is returning more than a thousand rows, dumping the data into a table takes time. I did have a problem when compiling for windows, the interface worked ok. However, printing was problematic. I hope they worked that out.
It's a great product.
I see also that 'AthenalIRC' was written in realbasic. There are people out there that are using it.
-
RE: Apple Laptop Keyboards Unsuitable for Unix Users (NOT!)
2002-11-11 11:01:37 anonymous2 [Reply | View]
Here is an easy solution.
Learn How To Type!
I have used Unix for years and never, ever, wanted the ctrl key to be where the caps lock key is. So you got used to it on some system back in the day, get over it, learn how to type properly and the ctrl key will not be such a challenge for you.
-
RE: Apple Laptop Keyboards Unsuitable for Unix Users
2002-11-10 02:50:41 anonymous2 [Reply | View]
Apple PowerBooks DO NOT use ADB Keyboards since Years!!
Just have a look to Apples website
-
RE: Apple Laptop Keyboards Unsuitable for Unix Users
2002-11-08 16:07:58 anonymous2 [Reply | View]
I thought I'd seen that post before, and, sure enough, a quick trip over to Google shows two other identical posts here on the O'Reilly site, and a third on an OpenBSD site. And that's looking at only the first few hits.
So...thanks for the boilerplate. Gotcha.
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-11-07 22:56:50 anonymous2 [Reply | View]
Apple laptops are effectively unusable for unix users.
I am a long-time Unix user. That means I need to have the Ctrl key to the left of the A key. This is a genuine need, not merely a want; it is based upon ergonomics. The Ctrl key is heavily used in unix, and it must be easily accessable. It cannot be off in the lower left corner of the keyboard where it is difficult to get at, and where it distorts the position of your left hand such that you can't easily type other keys while holding the Ctrl key down.
Apple desktop keyboards are now all USB. They are all OK. The CapsLock key can be re-mapped into a Ctrl key.
Unfortunately, even in this modern age, all Apple laptops have built-in ADB keyboards. The ADB keyboard is broken-by-design. It is, in general, not possible to remap the CapsLock key into a Ctrl key.
There are some exceptions, but they are horrible kludges. They are horrible kludges because the original design of the ADB keyboard was a horrible kludge. The correct solution would be for Apple to re-design their laptop motherboards to use built-in USB keyboards. This hasn't happened yet. If you run Linux, use Debian's solution. For Mac OS X users, uControl works. There are no solutions (that I know of) for either NetBSD or OpenBSD. Please note once again that the "solutions" above are in fact kludges, because of the original bad design of the ADB keyboard.
Apple is (currently) ignoring Unix users! This is not merely speculation on my part. In an on-going email exchange I am having with an Apple employee (whom I won't name) in their marketing department, the Apple marketing person directly stated to me that Apple was catering to their historic Mac customers, and is purposely ignoring the Unix market. He also claimed that Apple would soon start paying more attention to the Unix market. I won't hold my breath. Apple has been ignoring Unix users for more than 12 years. I expect that trend to continue. (Also note that my Apple contact indicated that Macs would never ship with a 3-button mouse, even though Apple intended to port almost all X-window software and deliver it either on a CD/DVD or installed directly on each Mac's hard drive. How Unix friendly is a 1-button mouse with X programs that often require 3 buttons?)
Apple has now lost two opportunities to sell me hardware. I really wanted an Apple laptop for their superior battery life, and for the PowerPC with Altivec CPU. (The Altivec is vastly superior to the x86 line for DSP.) Because I can't live with the broken-by-design built-in ADB keyboard in all Apple laptops, Sony and IBM sold me laptops instead. If Apple fixes this problem, they will sell me a PowerBook next year; if they don't, I'll still be running OpenBSD on x86 hardware, and wishing I could use a Mac.
-
Mac VB
2002-11-05 03:04:01 timbrooke [Reply | View]
This article has certainly opend my eyes to the realbasic product - can it be true that the mac world finally has some sort of mac version of VB to build stand alone applications at last ! - the real mac revolution is here !
mac programmers - lets code !
-
REALbasic Developer Magazine
2002-10-31 09:22:24 anonymous2 [Reply | View]
I'd just like to point out there's a new magazine devoted to REALbasic. Professionals will find it invaluable for learning REALbasic. REALbasic Developer has published two issue already and the next is due in Dec. (it's a bi-monthly magazine). Subscriptions are available in print or PDF editions. For more information, see the RBD website at http://www.rbdeveloper.com.














create windowless applications,
utilize nested windows,
create drawing or sketching applications?
Any replies would be appreciated
Thanksk