[Overview][Types][Classes][Index] | Reference for unit 'machowriter' (#fcl-res)

# TMachOResourceWriter

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Mach-O resource writer

## Declaration

Source position: machowriter.pp line 44

`type TMachOResourceWriter = class(TAbstractResourceWriter)`
`protected`
`function GetExtensions; override;`
`function GetDescription; override;`
`procedure Write(); override;`
`public`
`constructor Create; override;`
`destructor Destroy; override;`
`property MachineType: TMachOMachineType; [rw]` |  | The machine type of the object file
`property SubMachineType: TMachoSubMachineType; [rw]`
`end;`

## Inheritance

`TMachOResourceWriter` |  | Mach-O resource writer
`TAbstractResourceWriter` |  | Base abstract resource writer class
`TObject`

## 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.

## See also

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