Mac Developer Library

Developer

DREraseProgressPanel Class Reference

Options
Deployment Target:

On This Page
Language:

DREraseProgressPanel

Manages a panel that displays progress while erasing media. More...

Inheritance


Import Statement


import DiscRecordingUI @import DiscRecordingUI;

Availability


Available in OS X v10.2 and later.
  • Presents the progress panel on screen and begins the erase process.

    Declaration

    Swift

    func beginProgressPanelForErase(_ erase: DRErase!)

    Objective-C

    - (void)beginProgressPanelForErase:(DRErase *)erase

    Parameters

    erase

    The object performing the erase.

    Discussion

    This method returns control to the caller after it has displayed the progress sheet and begun the erase. Once the method has returned the caller can perform other operations while the erase continues.

    Import Statement

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Presents the progress panel as a sheet and begins the erase process.

    Declaration

    Swift

    func beginProgressSheetForErase(_ erase: DRErase!, modalForWindow docWindow: NSWindow!)

    Objective-C

    - (void)beginProgressSheetForErase:(DRErase *)erase modalForWindow:(NSWindow *)docWindow

    Parameters

    erase

    The object performing the erase.

    docWindow

    The window the sheet will be attached to. If docWindow is not nil, the panel slides down as a sheet running as a document modal window. If owner is nil, this is an error.

    Discussion

    This method returns control to the caller after it has displayed the progress sheet and begun the erase. Once the method has returned the caller can perform other operations while the erase continues.

    Import Statement

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Returns the description string displayed in the panel.

    Declaration

    Swift

    func description() -> String!

    Objective-C

    - (NSString *)description

    Return Value

    An NSString containing the text of the description.

    Discussion

    If no description is explicitly set, this method will return the standard text string.

    Import Statement

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Sets the panel text displayed to the user.

    Declaration

    Swift

    func setDescription(_ description: String!)

    Objective-C

    - (void)setDescription:(NSString *)description

    Parameters

    description

    The text to display.

    Discussion

    The panel's description is typically a short text string that gives an indication to the user what operation is being performed. If no description is explicitly set, the progress panel uses a standard text string suitable to the erase.

    Import Statement

    import DiscRecordingUI

    Availability

    Available in OS X v10.2 and later.

  • Creates and returns an instance of the erase progress panel.

    Declaration

    Objective-C

    + (DREraseProgressPanel *)progressPanel

    Return Value

    A pointer to the newly created DREraseProgressPanel.

    Import Statement

    Availability

    Available in OS X v10.2 and later.