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:

Feature

DiscRecording

How to burn a CD from REALbasic on Mac OS X

Issue: 6.1 (November/December 2007)
Author: Christian Schmitz, cSchmitz-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 11,958
Starting Page Number: 29
RBD Number: 6112
Resource File(s):

Download Icon 6112.zip Updated: Thursday, November 15, 2007 at 10:34 AM

Related Web Link(s):

cschmitz-at-rbdeveloper.com

Known Limitations: None

Excerpt of article text...

This article will introduce you to the DiscRecording classes in REALbasic. We will write several examples with different ways to create content. In each case we create a track object and handle it to the user interface classes. The GUI classes use the official Apple Disc Recording GUI so all the special cases for the different drives and their options are handled automatically for us. Of course you can decide to burn without a user interface, but that is a lot more work.

The easiest code to burn a folder to a CD or DVD is the following code listing:

dim track as DRTrackMBS

dim bsp as DRBurnSetupPanelMBS

dim bpp as DRBurnProgressPanelMBS

dim f as FolderItem

dim fo as DRFolderMBS

f=SelectFolder

if f <> nil then

track=DRTrackMBS.trackForRootFolder(f)

if track <> nil then

bsp=new DRBurnSetupPanelMBS

if bsp.runSetupPanel=bsp.NSOKButton then

bpp=new DRBurnProgressPanelMBS

bpp.beginProgressPanelForBurn bsp.burnObject, track

end if

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