Difference between revisions of "MPW"

From Lazarus wiki
Jump to navigationJump to search
m (typos corrected.)
 
(Add note on situation as 2012, and correct typos.)
Line 1: Line 1:
MPW stands for Macintosh Programmers Workshop, a unix inspired environment, created by Apple Computer in the early eighties, to facitlitate 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.)
+
MPW 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.)
  
Native Macinstosh files have CR as line ending and also have a file type and creator code, which are not visible to the user.  
+
Native Macintosh files have CR as line ending and also have a file type and creator code, which are not visible to the user.  
  
 
MPW 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.
 
MPW 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.
Line 16: Line 16:
  
 
Note: Watch out for the blank after MPS in the string 'MPS '.
 
Note: Watch out for the blank after MPS in the string 'MPS '.
 +
 +
''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.''

Revision as of 18:56, 9 December 2012

MPW 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.)

Native Macintosh files have CR as line ending and also have a file type and creator code, which are not visible to the user.

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

Some tools however, specifically PPCAsm, does not accept LF in its input, although it does not require the file to have a mac file type.

MPW 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'.

With the following MPW command, file type and creator code can be changed:

 SetFile -c 'MPS ' -t 'TEXT' filename

...which changes the file type to 'TEXT' and creator to 'MPS ' which is the creator code for MPW.

Note: Watch out for the blank after MPS in the string 'MPS '.

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.