Mac Developer Library

Developer

DRFile.h Reference

Options
Deployment Target:

On This Page
Language:

DRFile.h Reference

File objects used in filesystem creation.

A DRFile object is a subclass of DRFSObject and represents a file on the finished 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.

Included Headers

  • <Foundation/Foundation.h>

  • <DiscRecording/DRFSObject.h>

  • <AvailabilityMacros.h>

Data Types

See the Overview section above for header-level documentation.

  • Index used for accessing the forks of a file.

    Declaration

    Swift

    typealias DRFileFork = UInt32

    Objective-C

    typedef UInt32 DRFileFork;

    Discussion

    The data fork and resource fork always have fixed indices. Other forks may be allowed in the future.

    Import Statement

    Objective-C

    @import DiscRecording;

    Swift

    import DiscRecording

    Availability

    Available in OS X v10.2 and later.

Constants

See the Overview section above for header-level documentation.

  • Declaration

    Swift

    let DRLinkTypeFinderAlias: NSString! let DRLinkTypeHardLink: NSString! let DRLinkTypeSymbolicLink: NSString!

    Objective-C

    extern NSString* const DRLinkTypeFinderAlias; extern NSString* const DRLinkTypeHardLink; extern NSString* const DRLinkTypeSymbolicLink;

    Constants

    • DRLinkTypeFinderAlias

      DRLinkTypeFinderAlias

      A Finder alias.

      Available in OS X v10.2 and later.

    • DRLinkTypeHardLink

      DRLinkTypeHardLink

      A hard link.

      Available in OS X v10.2 and later.

    • DRLinkTypeSymbolicLink

      DRLinkTypeSymbolicLink

      A symbolic link.

      Available in OS X v10.2 and later.

  • Declaration

    Swift

    var DRFileForkData: Int { get } var DRFileForkResource: Int { get }

    Objective-C

    enum { DRFileForkData = 0, DRFileForkResource = 1 };

    Constants

    • DRFileForkData

      DRFileForkData

      The data fork contains the primary information for the file and is the fork used for files such as JPEGs, text files, etc.

      Available in OS X v10.2 and later.

    • DRFileForkResource

      DRFileForkResource

      The resource fork contains secondary meta-data, which is not important to the primary content of the file and may safely be ignored when the file is sent to a filesystem or OS which does not support multiple forks. See Inside Macintosh: Resources for more information on the format of a resource fork.

      Available in OS X v10.2 and later.

    Discussion

    Enumerated constants used to select the type of file fork.