DRFile.h Reference

Declared in
DRFile.h

Overview

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.

DRFileFork

Index used for accessing the forks of a file.

typedef UInt32 DRFileFork;
Discussion

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

Availability
  • Available in OS X v10.2 and later.
Declared In
DRFile.h

Constants

See the Overview section above for header-level documentation.

Global Constants

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

A Finder alias.

Available in OS X v10.2 and later.

Declared in DRFile.h.

DRLinkTypeHardLink

A hard link.

Available in OS X v10.2 and later.

Declared in DRFile.h.

DRLinkTypeSymbolicLink

A symbolic link.

Available in OS X v10.2 and later.

Declared in DRFile.h.

File Fork Types

enum {
   DRFileForkData = 0,
   DRFileForkResource = 1
};
Constants
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.

Declared in DRFile.h.

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.

Declared in DRFile.h.

Discussion

Enumerated constants used to select the type of file fork.