Mac Developer Library

Developer

DREraseSetupPanel Class Reference

Options
Deployment Target:

On This Page
Language:

DREraseSetupPanel

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

Import Statement


import DiscRecordingUI @import DiscRecordingUI;

Availability


Available in OS X v10.2 and later.
  • 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 in DRSetupPanel Class Reference or beginSetupSheetForWindow:modalDelegate:didEndSelector:contextInfo: in DRSetupPanel Class Reference ) because the erase object information is only updated just before the modal session ends.

    Import Statement

    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

    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

    Availability

    Available in OS X v10.2 and later.