Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Visual Basic and REALbasic Column

Further Mac OS Integration

Delving deeper into what the Mac OS offers

Issue: 2.6 (July/August 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): 6,993
Starting Page Number: 36
RBD Number: 2618
Resource File(s):

Download Icon 2618.sit Updated: Thursday, July 15, 2004 at 11:59 AM

Related Web Link(s):

http://developer.apple.com/documentation/Carbon/

Known Limitations: None

Excerpt of article text...

Last issue, we touched on the idea of Declare statements, which allow a REALbasic (RB) programmer to send commands directly to their program's host operating system. Visual Basic (VB) has this capability as well, but it is very unfriendly to programmers who want to use it. Finding the name and syntax for the command you want to use can be nearly impossible.

Fortunately, on the Mac, Apple provides excellent documentation of API calls (properly called Toolbox calls, since they are made to the Macintosh Toolbox). RB also makes it very simple to integrate these commands into your code. For our first example, we will write some code that resizes a window on screen. We could obviously do this with pure RB code, but using this function will apply smooth animation to the resizing.

First of all, head to Apple's Carbon reference website (http://developer.apple.com/documentation/Carbon/) and look at the categories offered. The one we want is User Experience. Click on it, and then click on Window Manager Reference in the list of User Experience topics that appears. This is a long list, like many of the other categories, and you have to be patient in looking for the section you want. You might not know exactly what you're looking for, so you have to look at each one and think carefully.

...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