Sign in Join
Wiki copytemporary

MPW: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11*(Mac OS Classic only)*
22
33MPW stands for Macintosh Programmers Workshop, a unix inspired environment, created by Apple Computer in the early eighties, to facilitate development of classic Macintosh programs. Previously a commerial product, it is today free to download and use, <http://developer.apple.com/tools/mpw-tools/>. MPW or ToolServer is required if one wants to develop fpc programs for [[Target MacOS]]. (ToolServer is a stripped down engine for running MPW tools without MPW, and is included within MPW.)
44
55Native Macintosh files have CR as line ending and also have a file type and creator code, which are not visible to the user.
66
77MPW can also open files with LF (unix) line ending, and will also preserve them when saving the file. It also opens files without a mac file type and creator.
88
99Some tools however, specifically PPCAsm, does not accept LF in its input, although it does not require the file to have a mac file type.
1010
1111MPW may execute any text file as a script, it doesn't need any extension. However, it requires the file to have a mac file type, and specifically the type 'TEXT'.
1212
1313With the following MPW command, file type and creator code can be changed:
1414
15-` SetFile -c 'MPS ' -t 'TEXT' filename`
15+```text
16+ SetFile -c 'MPS ' -t 'TEXT' filename
17+```
1618
1719...which changes the file type to 'TEXT' and creator to 'MPS ' which is the creator code for MPW.
1820
1921Note: Watch out for the blank after MPS in the string 'MPS '.
2022
2123*As of 2012, MPW is no longer available from Apple and is rapidly disappearing from mirrors and archive sites. Googling to determine the exact name of the binary, and then Googling for this specific file, might produce results from a cache somewhere.*
2224
2325*Hopefully the download will unpack the Macbinary file discarding the .bin suffix. The resulting .img file will be automatically mounted when double-clicked, but it's probably necessary to copy the MPW.GM folder out of this to ensure that it's not locked.*
2426
2527---
2628*From the Free Pascal wiki, page "MPW", as it stood on 2019-12-16 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history