Skip to content

TMachOResourceWriter

Mach-O resource writer

Declaration

Source position: machowriter.pp line 41

type

  TMachOResourceWriter = class(TAbstractResourceWriter)
  protected
    function GetExtensions : string;
    function GetDescription : string;
    procedure Write;
  public
    constructor Create;
    destructor Destroy;
    property MachineType: TMachOMachineType; {rw}
    property SubMachineType: TMachOSubMachineType; {rw}
  end;

Description

This class provides a writer for Mach-O object files and images containing resources.

Mach-O is the file format used by Darwin and Mac OS X for object files and image files (executables, dynamic libraries and so on). Free Pascal can store resources in Mach-O files in its own format.

MachineType property can be used to set the machine type of the object file to generate.

Properties

Member Visibility Description
MachineType public The machine type of the object file
SubMachineType public
See all Properties

Methods

Member Visibility Description
Create public
Destroy public
GetDescription protected
GetExtensions protected
Write protected
See all Methods

See also

Name Description
TMachOResourceWriter.MachineType The machine type of the object file
TAbstractResourceWriter Base abstract resource writer class
TMachOResourceReader Mach-O resource reader
Format of resources in object files Format of resources in object files