Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

VB & RB

Introducing the Mac OS

Getting to know the Mac OS from a programmer's viewpoint

Issue: 2.5 (May/June 2004)
Author: Owen Yamauchi
Author Bio: Owen Yamauchi is a freelance programmer who has been programming REALbasic since version F4. He is the Lead Programmer for Domain Softworx, a company that produces developer tools for REALbasic.
Article Description: No description available.
Article Length (in bytes): 10,114
Starting Page Number: 36
RBD Number: 2518
Resource File(s): None
Related Web Link(s):

http://www.mathemaesthetics.com/
http://www.ljug.com/sw/resfool.html

Known Limitations: None

Excerpt of article text...

In this issue, the column will focus on helping Visual Basic (VB) programmers get used to programming on the Mac. Knowing a bit about the inner workings of the system you're writing software for is very important.

Microsoft Windows and the Mac OS are fundamentally different. However, both VB and REALbasic (RB) are high-level languages; you rarely have to worry about what's going on inside. In this column, I'll cover a few basic topics that have to do with RB's interaction with the Mac OS, comparing them with VB and Windows.

In VB, you make API (Application Programming Interface) calls. These are special commands to Windows that enable your program to do something that it wouldn't normally be able to do, by calling on the operating system to do it for you. On the Mac, the idea is the same, and these commands are called Toolbox calls. The Macintosh Toolbox is the specific part of the operating system that handles these calls. The syntax for making a toolbox call is much the same in RB as in VB. At the beginning of a piece of code, you write a "Declare" statement that looks like this:

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com