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








