Abstract of INFO-MAC archived Text file 'dev/info/mac-binary-ii.txt' Uploaded 07/08/1993 7660 bytes Date: Tue, 29 Jun 1993 09:05:39 +0800 From: Peter N Lewis Subject: dev/info - MacBinary II Specs Hi, The specs for MB2 seem to have disappeared from the various sites, so here it is, reposted. I didn't write this, I have no connection with it, I'm just posting it. Peter. These are the new changes to the MacBinary Standard, as generally agreed upon in the MacBinary II Conference 6/21/87, and as changed in the followup conference 6/28/87. Revised 7/24/87 to reflect suggestions and clarifications that came later, and to include all necessary information needed from the original MacBinary standard document to implement MacBinary II. The new standard will be very similar to the original MacBinary standard as described in [MacBinary Standard]. (Reading the original standard is recommended for a full understanding of implementation and philosophy behind the MacBinary I and II formats.) The binary format consists of a 128-byte header containing all the information necessary to reproduce the document's directory entry on the receiving Macintosh; followed by the document's Data Fork (if it has one), padded with nulls to a multiple of 128 bytes (if necessary); followed by the document's Resource Fork (again, padded if necessary). The lengths of these forks (either or both of which may be zero) are contained in the header. The format of the header for MacBinary II is as follows: Offset 000-Byte, old version number, must be kept at zero for compatibility Offset 001-Byte, Length of filename (must be in the range 1-63) Offset 002-1 to 63 chars, filename (only "length" bytes are significant). Offset 065-Long Word, file type (normally expressed as four characters) Offset 069-Long Word, file creator (normally expressed as four characters) Offset 073-Byte, original Finder flags Bit 7 - Locked. Bit 6 - Invisible. Bit 5 - Bundle. Bit 4 - System. Bit 3 - Bozo. Bit 2 - Busy. Bit 1 - Changed. Bit 0 - Inited. Offset 074-Byte, zero fill, must be zero for compatibility Offset 075-Word, file's vertical position within its window. Offset 077-Word, file's horizontal position within its window. Offset 079-Word, file's window or folder ID. Offset 081-Byte, "Protected" flag (in low order bit). Offset 082-Byte, zero fill, must be zero for compatibility Offset 083-Long Word, Data Fork length (bytes, zero if no Data Fork). Offset 087-Long Word, Resource Fork length (bytes, zero if no R.F.).