Mac Developer Library

Developer

DRFile Class Reference

Options
Deployment Target:

On This Page
Language:

DRFile

Inheritance


Conforms To


Import Statement


Swift

import DiscRecording

Objective-C

@import DiscRecording;

Availability


Available in OS X v10.2 and later.

Represents a file to be created on the disc.

A file can be either a pointer to an exiting file (residing on a hard drive for example) or can be created at burn time from data passed into the file object as requested. DRFiles can only exist inside of virtual DRFolder objects.

  • Initializes a real file object

    Declaration

    Swift

    init!(path path: String!)

    Objective-C

    - (id)initWithPath:(NSString *)path

    Parameters

    path

    The path to an existing file.

    Return Value

    An DRFile object.

    Discussion

    This type of DRFile reads in data from an existing file located at path and burns that data to disc.

    Import Statement

    Objective-C

    @import DiscRecording;

    Swift

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

  • Creates a real file object

    Declaration

    Objective-C

    + (DRFile *)fileWithPath:(NSString *)path

    Parameters

    path

    The path to an existing file.

    Return Value

    An autoreleased DRFile object.

    Discussion

    This type of DRFile reads in data from an existing file located at path and burns that data to disc.

    Import Statement

    Objective-C

    @import DiscRecording;

    Availability

    Available in OS X v10.2 and later.