Creates an image reference for a Mach-O file currently
unsigned long size,
- A pointer to the memory block containing the
Mach-O file contents.
- The size of the memory block, in bytes.
- On output, a pointer to an NSObjectFileImage opaque
- function result
- A result code (see
Given a pointer to a Mach-O file in memory, this function
creates and returns an NSObjectFileImage reference.
The current implementation works only with bundles, so you must
build the Mach-O executable file using the -bundle linker
Available in Mac OS X version 10.3 and later.
The operation was completed successfully.
The operation was not successfully completed. When this
result code is returned, an error message is printed to the standard
The Mach-O file in memory is not of a type this function
can operate upon.
The specified Mach-O file is for a different CPU architecture.
The memory block does not appear to point to a Mach-O
The access permissions for the specified file do not
permit the creation of the image.
Last updated: 2003-08-07