请输入您要查询的百科知识:

 

词条 Type code
释义

  1. References

  2. External links

{{undue|date=March 2014}}

A type code is the only mechanism used in the classic Mac OS to denote a file's format, in a manner similar to file extensions in other operating systems. Codes are four-byte OSTypes. For example, the type code for a HyperCard stack is STAK; the type code of any application program is APPL.

macOS retains type codes, but supports filename extensions as well. The deprecation{{Citation needed|date=March 2013}} of type codes (and creator codes) in favour of the older extension system, popularised by PDP-11 systems (RT-11, RSX-11, etc.), CP/M, and most recently by Microsoft's MS-DOS, has been very controversial with Mac users.{{Citation needed|date=March 2013}} The type and creator system is considerably richer and more sophisticated than that provided by extensions, and many users felt that adopting DOS conventions is a backward step. They claim that type and creator information rightfully belongs to the metadata associated with a file, and is therefore illogically placed within the file's name, where its presence can cause problems for the user. Apple defends the decision by saying that extensions have become the de facto standard for indicating file type, and they need to work seamlessly with the rest of the industry.

Type codes are not readily accessible for users to manipulate, although they can be viewed and changed with certain software, most notably the macOS command line tools GetFileInfo and SetFile which are installed as part of the developer tools into /Developer/Tools, or the ResEdit utility available for older Macs.

Changes done in Mac OS X Tiger with the addition of Uniform Type Identifiers suggest that Apple heard those criticisms and is working on a file type successor to both type code and filename extensions.[1]

References

1. ^{{citation | publisher = Ars Technica | url = https://arstechnica.com/reviews/os/macosx-10.4.ars/11 | title = Mac OS X 10.4 | type = review}}

External links

  • {{citation | url = http://www.lacikam.co.il/tcdb/ | title = The Type/Creator Database}}.
  • {{cite web | url = http://www.macdisk.com/macsigen.php | title = Signatures of Macintosh Files | access-date=2015-12-01 | publisher = Logiciels & Services Duhem}}.
  • {{citation | url = https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/GetFileInfo.1.html | title = Darwin reference | contribution = GetFileInfo | type = man page | publisher = Apple}}.
  • {{citation | url = https://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/SetFile.1.html | title = Darwin reference | contribution = SetFile | type = man page | publisher = Apple}}.
{{Mac OS}}

2 : Mac OS|Metadata

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 19:17:00