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:

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