Mac Developer Library

Developer

DREraseSetupPanel Class Reference

Options
Deployment Target:

On This Page
Language:

DREraseSetupPanel

Conforms To


Import Statement


Swift

import DiscRecordingUI

Objective-C

@import DiscRecordingUI;

Availability


Available in OS X v10.2 and later.

Manages a panel that allows users to specify the parameters of an erase.

This class supports choosing the device to use and what sort of erase to perform.

When the panel is closed by the user choosing to erase the media in the device, the device is exclusively held by the application for its own use to prevent possible bad or corrupt media from causing problem for the rest of the system. This means that if the erase object obtained from the panel is not used to do an erase, the device will remain unavailable to other applications until the exclusive access is released.

  • Creates and returns a new DRErase object that's configured to erase the disc in the currently selected device.

    Declaration

    Swift

    func eraseObject() -> DRErase!

    Objective-C

    - (DRErase *)eraseObject

    Return Value

    A new DRErase object.

    Discussion

    The new DRErase object is configured based on the settings in the setup panel when the user clicks the OK button.

    Do not invoke this method within a modal session (runSetupPanel or beginSetupSheetForWindow:modalDelegate:didEndSelector:contextInfo: ) because the erase object information is only updated just before the modal session ends.

    Import Statement

    Objective-C

    @import DiscRecordingUI;

    Swift

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Invoked when the user clicks one of the panel's erase type radio buttons.

    Declaration

    Swift

    @IBAction func eraseType(_ sender: AnyObject!)

    Objective-C

    - (IBAction)eraseType:(id)sender

    Parameters

    sender

    The object that invoked this method.

    Import Statement

    Objective-C

    @import DiscRecordingUI;

    Swift

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Returns an instance of a erase setup panel.

    Declaration

    Objective-C

    + (DREraseSetupPanel *)setupPanel

    Return Value

    An erase setup panel.

    Import Statement

    Objective-C

    @import DiscRecordingUI;

    Availability

    Available in OS X v10.2 and later.