Platforms to show: All Mac Windows Linux Cross-Platform

DRBurnSetupPanelMBS class

Super class: DRSetupPanelMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Manages a panel that allows users to specify the parameters of an burn.
Example
dim track as DRTrackMBS
dim bsp as DRBurnSetupPanelMBS
dim bpp as DRBurnProgressPanelMBS

// we need a track
track=CreateTrack

if track<>nil then
bsp=new DRBurnSetupPanelMBS

// set a few options
bsp.setCanSelectAppendableMedia true
bsp.setCanSelectTestBurn true

if bsp.runSetupPanel=bsp.NSOKButton then
bpp=new DRBurnProgressPanelMBS

// And start off the burn itself. This will put up the progress dialog
// and do all the nice pretty things that a happy app does.
bpp.beginProgressPanelForBurn bsp.burnObject, track

else
MsgBox "You pressed cancel."
end if
end if

This class supports choosing the the device to use, whether or not to verify the burned data and how to handle the burned disc when it completes.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
Subclass of the DRSetupPanelMBS class.

Super class DRSetupPanelMBS

Constants

Constant Value Description
NSCancelButton 0 The value runSetupPanel returns if the Cancel button is clicked.
NSOKButton 1 The value runSetupPanel returns if the OK button is clicked.

Super class NSPanelMBS

  • 3 properties
  • method Constructor(x as Double, y as Double, w as Double, h as Double, styleMask as Integer, BackingStoreType as Integer, deferCreation as boolean)
  • 12 shared methods
    • shared method RunAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
    • shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
    • shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
    • shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
    • shared method RunCriticalAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
    • shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
    • shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
    • shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
    • shared method RunInformationalAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
    • shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
    • shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
    • shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
  • 10 constants

Constants

Constant Value Description
NSAlertAlternateReturn 0 One of the possible return values for the alert panels. The user pressed the alternate button.
NSAlertDefaultReturn 1 One of the possible return values for the alert panels. The user pressed the default button.
NSAlertErrorReturn -2 One of the possible return values for the alert panels. The alert cannot identify the reason it was closed; it may have been closed by an external source or by a button other than those listed above.
NSAlertOtherReturn -1 One of the possible return values for the alert panels. The user pressed a second alternate button.
NSCancelButton 0 One of the constants for the modal panel return values. The Cancel button.
NSDocModalWindowMask 64 One of the constants you can use to specify the style when creating a window. The panel is created as a modal sheet.
NSHUDWindowMask 8192 One of the constants you can use to specify the style when creating a window.
NSNonactivatingPanelMask 128 One of the constants you can use to specify the style when creating a window. The panel can receive keyboard input without activating the owning application.
NSOKButton 1 One of the constants for the modal panel return values. The OK button.
NSUtilityWindowMask 16 One of the constants you can use to specify the style when creating a window. The panel is created as a floating window.

Super class NSWindowMBS

Super class NSResponderMBS

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine


The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacControls Plugin.


DRBurnProgressPanelMBS   -   DRCDTextBlockMBS


The biggest plugin in space...