Mac Developer Library

Developer

DRErase Class Reference

Options
Deployment Target:

On This Page
Language:

DRErase

A DRErase object handles the process of erasing a rewritable CD or DVD disc. More...

Inheritance


Conforms To


Import Statement


import DiscRecording @import DiscRecording;

Availability


Available in OS X v10.2 and later.
  • Returns the device being used for the erase.

    Declaration

    Swift

    func device() -> DRDevice!

    Objective-C

    - (DRDevice *)device

    Return Value

    The DRDevice the erase will use.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Initializes an erase object.

    Declaration

    Swift

    init!(device device: DRDevice!)

    Objective-C

    - (id)initWithDevice:(DRDevice *)device

    Parameters

    device

    Device to use for the erase.

    Return Value

    A DRErase object.

    Discussion

    An erase object created with this method is ready to erase media.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Returns the properties dictionary of the erase.

    Declaration

    Swift

    func properties() -> [NSObject : AnyObject]!

    Objective-C

    - (NSDictionary *)properties

    Return Value

    An NSDictionary containing the properties of the erase.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Sets the properties dictionary of the erase

    Declaration

    Swift

    func setProperties(_ properties: [NSObject : AnyObject]!)

    Objective-C

    - (void)setProperties:(NSDictionary *)properties

    Parameters

    properties

    NSDictionary of the properties to set.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Begin the process of erasing media.

    Declaration

    Swift

    func start()

    Objective-C

    - (void)start

    Discussion

    This method only kicks off the erase. Once the erasure starts, control returns to the caller. The caller can monitor the progress of the erase by listening for a notification or by polling status .

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Returns a dictionary containing the status of the erase.

    Declaration

    Swift

    func status() -> [NSObject : AnyObject]!

    Objective-C

    - (NSDictionary *)status

    Return Value

    An NSDictionary containing the status of the erase.

    Discussion

    The same dictionary is returned through the DREraseStatusChangedNotification notification.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Creates and returns an erase object.

    Declaration

    Swift

    init!(forDevice device: DRDevice!) -> DRErase

    Objective-C

    + (DRErase *)eraseForDevice:(DRDevice *)device

    Parameters

    device

    Device to use for the erase.

    Return Value

    An autoreleased DRErase object.

    Discussion

    An erase object created with this method is ready to erase media.

    Import Statement

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.