嫡孙是什么意思| 肾构错瘤要注意什么| 琏是什么意思| 喝茶叶有什么好处| 冠带是什么意思| 鼻后滴漏吃什么药| mL代表什么| 筋膜炎吃什么药好得快| 什么是奇门遁甲| 为什么会梦到自己怀孕| ram是什么动物| 假象是什么意思| 流沙是什么意思| 肝气郁结吃什么中成药| 皮肤起水泡发痒是什么病| 爱是什么颜色| 福利姬什么意思| 为什么突然有狐臭了| 哈尔滨有什么特产| 为什么特别招蚊子| 泡沫尿是什么原因| 口腔溃疡是缺少什么维生素| 口干口苦口臭吃什么药| 什么是积| heineken是什么啤酒| 心脏房颤是什么症状| 为什么不能抠肚脐眼| 7月一日是什么节日| 狗发烧吃什么药| 皮肤晒伤用什么药| 淋巴肿了吃什么消炎药| rio是什么酒| 棉纺是什么面料| 阴历七月是什么星座| 吃什么药能死| 梦见父亲去世预示什么| 喝什么能减肥| 金屋藏娇定富贵是什么生肖| 头疼呕吐是什么原因| 什么前什么后| 不一般是什么意思| 孕妇贫血吃什么好| 雷诺综合症是什么病| 趣味相投是什么意思| 小孩突然抽搐失去意识是什么原因| 开小灶是什么意思| 生菜为什么会苦| hpv低危型是什么意思| 一惊一乍是什么意思| 运动不出汗是什么原因| 做生意的人最忌讳什么| 替班是什么意思| c8是什么意思| 左手小手指麻木是什么原因引起的| 2月27是什么星座| 脚痛是什么原因| 骨折吃什么恢复得快| 女人脾肾两虚吃什么好| 3岁小孩不会说话是什么原因| 开塞露用多了有什么副作用| 老被蚊子咬是什么原因| 花子是什么意思| 桃花是什么季节开的| 鼾症是什么病| 阳寿是什么意思| 丁火命是什么意思| 白玫瑰适合送什么人| 诸神黄昏什么意思| 黄精什么味道| 破代表什么生肖| 单于是什么意思| 脑胀是什么原因| 月经期间适合吃什么水果| 5月21日是什么星座| 臃肿是什么意思| 脑死亡是什么原因引起的| 审计署是什么级别| 梦见自己生小孩是什么征兆| 5月14日是什么星座| 出马仙是什么意思| 头孢呋辛钠主治什么病| 人人有的是什么生肖| 什么是肠易激综合征| 吃什么消肿| 一个永一个日念什么| 女生排卵期是什么时候| 婆媳关系为什么难相处| 宫颈炎是什么病| 2018 年是什么年| 佛性是什么意思| 大姨妈没来是什么原因| 牛字旁与什么有关| 凯字五行属什么| 定情信物是什么意思| 胃酸是什么症状| 牙龈翻瓣术是什么意思| 阳虚是什么意思| 浮生如梦是什么意思| 痦子和痣有什么区别| 高血脂吃什么| 肝内脂质沉积是什么意思| 白羊男喜欢什么样的女生| 缺少雌激素的女性会有什么症状| sp什么意思| 梦见修路什么意思| vjc是什么品牌| bac是什么意思| 1988年是什么命| 尿失禁吃什么药最好| 孕妇感染弓形虫有什么症状| 孩子嗓子有痰吃什么药| 皮炎用什么药膏最有效| 为什么阴道会放气| 什么中药能降血压| 白洞是什么东西| 什么食物含碘| 睡觉多梦吃什么药| 肛周瘙痒是什么原因| 狗为什么不死在家里| 梦见小孩是什么意思| 文书是什么意思| 两胸之间是什么部位| 乙肝是什么病严重吗| vj是什么| dmdm乙内酰脲是什么| 肾气不足是什么原因| 北京为什么叫帝都| 澳门使用什么货币| 螃蟹吐泡泡是什么原因| 舌苔厚白吃什么中成药| 竖心旁的字和什么有关| 什么牌子的蓝牙耳机好| 寿诞是什么意思| 1207是什么星座| 重楼别名叫什么| 头发掉的厉害是什么原因| 肠系膜淋巴结是什么病| 心肾不交有什么症状| 鹰潭有什么好玩的地方| 曼波是什么意思| 打哈哈是什么意思| 人什么地灵| 铁树开花什么样| 11月25日是什么星座| 杆菌一个加号什么意思| 肺纤维化有什么症状| 乙肝抗体阴性是什么意思| 待产包需要准备什么| 吃什么助勃药能硬| 社恐到底在害怕什么| 痛风吃什么药好得快| 花儿为什么这样红歌词| 卵胎生是什么意思| 前羽念什么| x是什么品牌| 立春有什么讲究| 肚脐是什么穴位| 什么是红曲米| er是什么元素| 法令纹上有痣代表什么| 女人心肌缺血吃什么药| 子宫内膜6mm意味着什么| 手掌发麻是什么原因| 油烟机没有吸力是什么原因| 做梦梦到老公出轨代表什么预兆| 苯佐卡因是什么药| 肠息肉吃什么药| 人贫血吃什么补得快| 九九重阳节是什么意思| 肝血虚吃什么中成药| 为什么佛山有三个车牌| 胃不好吃什么最养胃| 补办身份证需要什么手续| 蒲公英长什么样子| 孕妇什么东西不能吃| 怀孕为什么要吃叶酸| 舌头发白什么原因| 晕3d是什么原因| 蹲不下去是什么原因| 夏天什么花开| 心肌酶高是什么意思| 手足口是什么引起的| 哦多桑是什么意思| 阳虚火旺吃什么中成药| 离子四项是检查什么的| lac是什么意思| 拔罐对身体有什么好处和坏处| 为什么会有荨麻疹| 黯然泪下是什么意思| 怀孕前期有什么征兆| 去心火喝什么茶好| 减肥可以吃什么零食| apk是什么格式| 巴沙鱼是什么鱼| 女人五行缺水是什么命| 难于上青天是什么意思| 没有美瞳护理液用什么代替| 小孩老是咬手指甲是什么原因| 西米是什么做成的| 肝郁脾虚吃什么药| vt什么意思| 胸部ct可以检查出什么| 结肠炎吃什么食物好| 金骏眉属于什么茶类| 海之蓝是什么香型| 退休是什么意思| 什么是速率| 早上的太阳叫什么| 女生不来大姨妈是什么原因| 一戴套就软是什么原因| 80岁称什么之年| 你想成为什么样的人| 荨麻疹用什么药膏| 肠粘连有什么症状| 外感发热什么意思| 什么面条好吃| 拜阿司匹林什么时间吃最好| 五月二十六是什么星座| 儿女情长英雄气短是什么意思| 豇豆不能和什么一起吃| 韬光养晦什么意思| 有什么有什么| 乳晕是什么意思| 萎缩性胃炎不能吃什么食物| 老年人腿浮肿是什么原因引起的| 为什么不建议光子嫩肤| 三点水加个有字念什么| 梦到父母离婚是什么意思| 感冒可以吃什么水果好| 结核杆菌dna检测是检查什么| 下面瘙痒是什么原因| 鹦鹉能吃什么水果| 常吃山药有什么好处和坏处| 嘉字属于五行属什么| 精梳棉是什么面料| 早泄用什么药| pending是什么状态| 周杰伦是什么星座| 衣食父母什么意思| 烤麸是什么做的| 尿酸偏高是什么病| 养心吃什么| 做梦梦到鸡是什么意思| 手指脱皮是什么原因| 囊肿是什么原因造成的| 什么生肖站着睡觉| 舟山念什么| 肚子一直咕咕叫是什么原因| 梦见自己吐血是什么征兆| 浑身酸痛什么原因| 什么样的男人值得托付终身| 备孕要注意什么| 罡什么意思| omega什么意思| 什么叫中位数| 什么蜂蜜最好| 山葵是什么| 嘴巴像什么| 一天从早到晚叫什么日| 缺席是什么意思| 1948年属鼠的是什么命| 8岁属什么| 什么茶提神| 胃酸吃什么能缓解| 百度Jump to content

俄国防部:已签署量产“先锋”高超音速导弹合同

From Wikipedia, the free encyclopedia
(Redirected from Type code)
百度 对于如何保持成功发展,宝马集团董事长科鲁格表示:一方面,我们将持续关注核心业务的高水平运营并继续改进;另一方面,在创新技术和服务方面进行有针对性的投资。

A resource fork is a fork of a file on Apple's classic Mac OS operating system that is used to store structured data. It is one of the two forks of a file, along with the data fork, which stores data that the operating system treats as unstructured. Resource fork capability has been carried over to the modern macOS for compatibility.

A resource fork stores information in a specific form, containing details such as icon bitmaps, the shapes of windows, definitions of menus and their contents, and application code (machine code). For example, a word processing file might store its text in the data fork, while storing any embedded images in the same file's resource fork. The resource fork is used mostly by executables, but any file can have a resource fork.

In a 1986 technical note, Apple strongly recommended that developers do not put general data into the resource fork of a file. According to Apple, there are parts of the system software that rely on resource forks having only valid Resource Manager information in them.[1]

The resource fork was conceived and implemented by Apple programmer Bruce Horn.

Macintosh file systems

[edit]

The resource fork has three purposes in classic Macintosh file systems:

  • It stores all graphical data on disk until it is needed, then retrieved, drawn on the screen, and thrown away. This software variant of virtual memory reduces memory requirements from 1 MB in the Lisa to 128 KB in Macintosh.[citation needed]
  • It provides a way for a non-programmer to perform internationalization and localization, because all the pictures and text are stored separately in a resource fork.
  • It can be used to distribute nearly all of the components of an application in a single file, reducing clutter and simplifying application installation and removal.

The resource fork is implemented in all of the file systems used for system drives in the classic Mac OS (MFS, HFS and HFS Plus), and in the macOS-only APFS. The presence of a resource fork makes it easy to store a variety of additional information, such as an icon that the desktop should display for that file. While the data fork allows random access to any offset within it, access to the resource fork works like extracting structured records from a database. (Microsoft Windows also has a concept of "resources", but these are completely unrelated to resources in Mac OS.)

The Macintosh file systems store metadata distinct from either the data or resource fork, such as the creation and modification timestamps, the file type and creator codes, and fork lengths.

Some files have only a resource fork. One example is a font file in the classic Mac OS. Another example is a Classic 68k application, where even the executable code is contained in resources of type 'CODE'. Later PowerPC binaries stored the executable code in the data fork.

Since resource forks were supported only on Macintosh file systems including MFS, HFS, HFS Plus, and APFS, they could not be copied to the file systems of other operating systems. The Mac BinHex and MacBinary formats were invented to encode resource and data forks into one file, for transfer between systems. A/UX supported resource forks on Unix file systems via the AppleSingle and AppleDouble formats. Starting with Mac OS X Tiger, AppleDouble was used to store resource forks on file systems such as Windows SMB shares and FAT32 (File Allocation Table) volumes.

In the HFS Plus file system, settings can be made to allow other forks in addition to the data and resource forks, to create a "multi-fork" application.[2]

As of August 7, 2002, Apple recommended that developers should not build resources into resource forks in Mach-O binaries on Mac OS X.[3]

Resource identifiers

[edit]

Each resource has an OSType identifier (a four byte value), an ID (a signed 16-bit word), and an optional name. There are standardized resource types for dialog boxes (DITL), images (PICT), sounds (snd ) – and executable binaries (CODE) which, until the advent of the PowerPC processor, were without exception stored in the resource fork. Subroutines for rendering windows are stored in their own type of resources (WDEF), and subroutines for rendering menus in theirs (MDEF). This arrangement enabled users to easily customize not only individual applications but also the operating system itself, using tools such as ResEdit to modify the resources of an application file or any of the system files.

Within an application or other code, resources can be loaded simply using a combination of their type, ID or name, without regard to how and where they are stored in the resource fork. The client is returned a handle to the loaded resource which can then be accessed like any other heap-based data. The OS component that facilitates this is the Resource Manager. In addition to abstracting the details of the data storage from the data, the Resource Manager also arranges sets of open resource forks into a stack, with the most recently opened file on top. When trying to load a resource, it will look in the top of the stack first, (perhaps the current document's resource fork), then the next one down (the application's resource fork), then the next one (system resource forks). This arrangement is very powerful – it permits local resources to override more global ones lower down – so an application can provide its own icons or fonts in place of the standard system ones, for example. It also allows an application to load resources from the system using the same API as any other resource, without regard to where or how that resource is stored – to the application, all resources are equally available and easy to use. The system reserves resource IDs in a certain range to help avoid resource conflicts arising from this. Resource Manager APIs allow the programmer to manipulate the stack and modify the search behaviour.

Editing

[edit]

As the resource fork can be edited with a resource editor such as ResEdit, it can be used to localize and customize software. In addition, most resource editors allow visual editing of data. In macOS, it is possible to use resources when developing an application. However, if the application may need to be used in UFS, it is also possible to configure it so that the entire resource fork is moved to the data fork, using the Raw Resource File setting[citation needed]. The integrated development environments distributed for free by Apple Inc., which include MPW and Apple Developer's Tools, include a compiler called Rez. This uses a dedicated language, also called Rez, which can be used to create a resource fork by compiling source code. A decompiler, DeRez, which can be used to change a resource fork back into Rez code is also included.

In the structure of the resource fork, there is a piece of data called a "resource map" which stores the positions of resource data items. This can be used to allow random access to resource data based on the defined IDs and names. The resource fork can be thought of as consisting of essentially two objects, the resource map and the resource data itself, but in fact each data type is a hierarchical structure which stores multiple items of data. The format in which the information in the resource data is stored is defined based on the types of information, which are known as "resource types." Resource data often makes references to other types of data.

In macOS, forks are named file/..namedfork/forkname, e.g., the resource fork of the file IMG_0593.jpg is IMG_0593.jpg/..namedfork/rsrc. The ls command supports a -l@ option which lists a file's forks.

Accessing

[edit]

Resource forks appear as the extended attribute com.apple.ResourceFork.[4]

Previously resource forks were accessed via the 'Resource Manager' API. This API is now deprecated.[5]

Under the deprecated API:

  1. When a resource fork is accessed, data including the start position and length of the resource data and resource map is read in from the header.
  2. If a resource type to read in has been specified, a check is performed to make sure that type is present in the resource list, and the number of items of data containing that type and their offsets in the resource reference list from the start position of the resource map is found.
  3. The resource ID, the offset of the resource name, the resource properties, and the offset of the data from the start position of the resource data is found.
  4. If resource data with the specified ID or name is present in the resource data, the offset obtained above is accessed, the data length is found, and all the data stored there is read in, and returned as the return value.

File Manager APIs such as PBOpenRF() also allowed access to the raw resource fork; however, they should be used only for applications such as copying a file – Apple strongly warns against using the resource fork as a "second data fork."

From the POSIX interface, the resource fork could be accessed as filename/..namedfork/rsrc or as filename/rsrc; the shorter form was deprecated in Mac OS X v10.4 and removed completely in Mac OS X v10.7.[6]

Data types

[edit]

The smallest elements making up a resource fork are called data types. There are several data types. After a resource fork is accessed, its contents can be found by reading it in as appropriate for the data types defined in advance. Placing definitions inside the program stating how data is to be treated makes it possible to store resources called TMPL resources as well. Using this method increases the visibility of the data when viewed with a program such as ResEdit, making later editing simpler. As the Macintosh platform originated with Motorola-based processors (68k and PPC), the data is serialized to disk in big-endian format.

The following is a list of the major data types, in alphabetical order.

Data type actual name Description
BBIT binary bit Represents a single Boolean bit (true or false). Normally the number of BBITs must be a multiple of 8.
BOOL Boolean Represents a Boolean value. It consists of 2 bytes; 256 is true, and 0 is false.
CHAR character Represents a one-byte character.
CSTR C string Represents a string of the form used in the C programming language: a null-terminated string of bytes.
DLNG decimal long word integer A decimal long word (4 byte integer). Represents values between approximately ? 2.1 billion and 2.1 billion.
HEXD hex dump Indicates that the data from this position to the end is hexadecimal. This is used to represent code resources or compressed data.
HLNG long word hexadecimal This data is treated as a 4 byte hexadecimal value. It is used, among other things, to represent integers greater than 2.1 billion, such as unsigned long values in C.
PSTR Pascal string Represents a Pascal string, with the first byte giving the length of the string.
TNAM type name A string representing a value such as a creator code, which is always 4 bytes long.
RECT rectangle Represents the coordinates of the corners of a rectangle (top, left, bottom, right). Always 8 bytes long.

Types

[edit]

The type codes below, like the above datatypes, are used as type identifiers for more than resource forks themselves: they are used to identify files themselves, to describe data in the clipboard, and much more.

Types must be 4 bytes long, so types like snd and STR actually have a space (0x20) at the end.

Name of resource type actual name Description
alis alias Stores an alias to another file, in a resource fork of a file whose "alias" attribute bit is set
ALRT alert Defines the shape of an application alert box
APPL application Stores application information
BNDL bundle Defines data such as a file type icon used in an application
cicn color icon Defines a color icon used in data
clut color look-up table Defines a color palette used in data
CNTL control Defines the details of a component positioned in a window
CODE code resource Stores the machine code for the program
CURS cursor Defines the shape of a monochrome cursor (8 × 8 bit square)
DITL dialog item list Defines a component of a window
DLOG dialog Defines the shape of a dialog box for an application
FREF file reference Defines a file type handled by an application
hfdr icon balloon help Defines the contents and shape of the balloon help displayed when the cursor hovers over the file in the Finder
icl8 8-bit icon list Defines an icon displayed in the Finder
icns 32-bit icon list Defines an icon displayed in the Finder
ICON icon Defines a monochrome item used in data
kind file description Defines a description of a file type
MBAR menu bar Defines a menu and menu bar for an application
MDEF menu definition Defines a menu for an application. Can also be used to define menus with complex shapes such as color palettes.
MENU menu Defines the menu items in an application
MooV movie Stores a QuickTime movie
open open Defines a file type which the application can open
PICT picture Stores a PICT image contained in the file
PREF preference Stores the environment settings for an application
snd sound Stores a sound used in the file
STR string Stores a string or hexadecimal data used in the file
STR# string list Stores multiple strings used in the file
styl style Defines style information, such as the font, color and size of text
TEXT text Stores text
TMPL template Defines the format for the resource data
vers version Defines the version or region of use of the file
WDEF window definition Defines a window for the application. Windows of an unspecified shape can also be defined.
WIND window Defines the shape of an application window

Editors

[edit]
ResEdit
Distributed free of charge by Apple. Can be used for visual editing of resource data. If the structure of data is known, it can display a range of different types of data in a visual format. Does not run on modern macOS.
Resorcerer
Expensive, but popular, as it can be used for visual editing of many more types of data than ResEdit.
HexEdit
A binary editor, which in fact is normally used more for editing the data fork rather than the resource fork.
ResKnife
Open-source editor for Mac OS X; no longer maintained.
Rezycle
A macOS tool that extracts resources from a resource fork into separate binary files while converting many types into formats suitable for modern development.
resource_dasm
An open-source resource extractor for macOS and Linux, also capable of converting many resources into modern formats.[7]
ResForge
resource editor for macOS, capable of editing classic resource fork files and related formats. Compatible with macOS 10.14 or later. Runs natively on both 64-bit Intel and Apple Silicon.[8]

Compatibility

[edit]

The complexity of programming with resource forks has led to compatibility problems when accessing other file systems via file sharing protocols such as AFP, SMB, NFS and FTP, when storing to non-HFS volumes, or when transmitting files to other systems in other ways (such as via email). The AFP protocol natively supports Resource Forks, and so resource forks are typically transmitted to these volumes as-is, and stored by the server transparently to clients. The SMB protocol supports a file metadata system similar to Macintosh forks known as Alternate Data Streams (ADSes hereafter). macOS did not support storing resource forks in ADSes on SMB volumes by default until Mac OS X v10.6. In previous versions of the OS, including upgraded versions of 10.6, this feature can be enabled with a param change or by creating a special file.[9]

Networked file sharing protocols such as NFSv3 and FTP do not have a concept of file metadata, and so there is no way to natively store resource forks. This is also true when writing to certain types of local file systems, including UFS, and on SMB volumes where Alternate Data Stream support is not enabled. In those cases, macOS stores metadata and resource forks using a technique called AppleDouble, in which the data fork is written as one file, and the resource fork and metadata are written as an entirely separate file preceded by a "._" naming convention. For example: ExampleFile.psd would contain the data fork, and ._ExampleFile.psd would contain the resource fork and metadata.

Compatibility problems can arise because macOS will handle storage of resource forks differently, depending on macOS version, settings, and file system type. For example, on an SMB network with a mixture of 10.5 and 10.6 clients. A freshly installed 10.6 client will look for and store resource forks on an SMB volume in ADSes, but the 10.5 client will (by default) ignore ADSes and use AppleDouble format to handle forks. If a fileserver supports both AFP and NFS, then clients using NFS will store files in AppleDouble format, whereas AFP users will stored the resource fork natively. In those cases, compatibility can sometimes be maintained by forcing clients to use, or not use, AppleDouble format.

Many fileservers providing AFP support do not natively support resource forks on their local file systems. In those cases the forks may be stored in special ways, such as specially named files, special directories, or even Alternate Data Streams.

Another challenge is preserving resource forks when transmitting files using non-resource fork-aware applications or with certain transfer methods, including email and FTP. A number of file formats, such as MacBinary and BinHex, have been created to handle this. Command-line system tools SplitForks and FixupResourceForks allow manual flattening and merging of resource forks. In addition, a file server seeking to present file systems to Macintosh clients must accommodate the resource fork as well as the data fork of files; UNIX servers providing AFP support usually implement this with hidden directories.

Older applications written with the Carbon API have a potential issue when being ported to the current Intel Macs. While the Resource Manager and operating system know how to deserialize data correctly for common resources like 'snd ' or 'moov', resources created using TMPL resources have to be byte swapped manually to ensure file interoperability between PPC and Intel-based versions of an application. (While the resource map and other implementation details are big-endian, the Resource Manager by itself does not have any knowledge of the contents of a generic resource, and so cannot perform the byte swapping automatically.)

Until the advent of Mac OS X v10.4, the standard UNIX command-line utilities in macOS (such as cp and mv) did not respect resource forks. To copy files with resource forks, one had to use ditto or CpMac and MvMac.

Other operating systems

[edit]

The concept of a resource manager for graphics objects, to save memory, originated in the OOZE package on the Xerox Alto in Smalltalk-76.[10] The concept is now largely universal in all modern operating systems. However, the concept of the resource fork remains peculiar to the Macintosh. Most operating systems used a binary file containing resources, which is then "tacked onto" the end of an existing program file. This solution is used on Microsoft Windows for instance, and similar solutions are used with the X Window System, although the resources are often left as a separate file.

The Windows NT NTFS can support forks (and so can be a file server for Mac files), the native feature providing that support is called an alternate data stream. Windows operating system features (such as the standard Summary tab in the Properties page for non-Office files) and Windows applications use them and Microsoft was developing a next-generation file system that has this sort of feature as basis.

Early versions of the BeOS implemented a database within the file system, which could be used in a manner analogous to a resource fork. Performance issues led to a change in later releases to a system of complex file system attributes. Under this system resources were handled in a fashion somewhat more analogous to the Mac.

AmigaOS does not use forked files. Its executable files are internally divided into a modular structure of large pieces (hunk) capable of storing code, data, and additional information. Similarly, data and project files have a chunk structure codified in the IFF standard. Other file types are stored similarly to other operating systems. Though not strictly a resource fork, AmigaOS stores meta data in files known as .info files. .info files can be identified by the .info extension; for example, if you save a project to a disk, two files will be saved, MyProject and MyProject.info. MyProject would be the actual project data and MyProject.info would contain the project icon, information regarding which program is needed to open the project (since there is no application binding in AmigaOS), special project options and any user comments. .info files are invisible on the Amiga's desktop (Workbench). The icon on the desktop, taken from the .info itself, is the interface metaphor through which the user interacts both with the project itself and its associated .info file. A dialog box accessible by right-clicking the icon allows the user to see and modify the metadata present in the .info file. .info files can be seen as individual files in the command-line interface or a File manager. Modern AmigaOS clones (AROS, MorphOS and AOS4) inherit the structure (complete with metadata) of the .info files of older AmigaOS versions, and can also accept standard PNG graphic files as icon bitmaps in their .info files.

NeXT operating systems NeXTSTEP and OPENSTEP, their successor, macOS, and other systems like RISC OS implemented another solution. Under these systems the resources are left in an original format, for instance, pictures are included as complete TIFF files instead of being encoded into some sort of container. These resources are then placed in a directory along with the executable code and "raw data". The directory (called a "bundle" or "application directory") is then presented to the user as the application itself. This solution provides all of the same functionality as the resource fork, but allows the resources to be easily manipulated by any application – a "resource editor" (like ResEdit) is not needed. From the command-line interface, the bundle appears to be a normal directory. This approach was not an option on the classic Mac OS, since the file system (MFS) did not support separate catalog directories. When catalog file support was included in Mac OS, with the HFS filesystem, the resource fork was retained. macOS does retain the classic Resource Manager API as part of its Carbon libraries for backward compatibility. However, the resources themselves can now be stored in separate data files within the file system – the Resource Manager now hides this implementation change from the client code.

See also

[edit]

References

[edit]
  1. ^ "Technical Note FL19: Data in Resource Fork: Don't do It". Apple Developer. Mar 1, 1986. Archived from the original on Aug 16, 2023.
  2. ^ "Technical Note TN1150: HFS Plus Volume Format". Apple Developer. Mar 5, 2004. Retrieved 11 February 2024.
  3. ^ "Technical Q&A QA1175: Resource forks in Mach-O binaries". Apple Developer. Aug 7, 2002. Archived from the original on Aug 16, 2023.
  4. ^ Stacey, Jon (August 21, 2009). "Mac OS X Resource Forks". Jon's View. Retrieved 2025-08-06.
  5. ^ "Resource Manager Reference". Apple Developer. Archived from the original on Oct 25, 2012. Retrieved 2025-08-06.
  6. ^ "Using Pathnames". Apple Developer. March 31, 2001. Archived from the original on 2025-08-06. Retrieved 2025-08-06.
  7. ^ fuzziqersoftware. "resource_dasm". GitHub.
  8. ^ andrews05. "ResForge". GitHub.
  9. ^ "Mac OS X v10.5, v10.6: About named streams on SMB-mounted NAS, Mac OS X, and Windows servers; "-36" or "-50" alerts may appear". Apple Support. Archived from the original on Jul 24, 2010. Retrieved 2025-08-06.
  10. ^ "The Early History of Smalltalk". Archived from the original on 2025-08-06. Retrieved 2025-08-06.
[edit]
9.27日是什么星座 水瓶座是什么性格 心脏搭桥是什么病 什么是碳水食物有哪些 真狗是什么意思
塔罗是什么 定亲是什么意思 长痱子用什么药 加白是什么意思 天德合是什么意思
移植后屁多是什么原因 孕妇补铁吃什么 孙策是孙权的什么人 什么时候建档 打破伤风针挂什么科
五官指的是什么 心电图低电压什么意思 脾不统血吃什么中成药 京东白条什么时候还款 社保卡是干什么用的
恩施玉露属于什么茶hcv8jop6ns8r.cn 陈赫的老婆叫什么名字hcv8jop8ns2r.cn 月季花是什么颜色的hcv8jop3ns6r.cn 每天早上喝一杯蜂蜜水有什么好处xinmaowt.com 幽门螺旋杆菌的症状吃什么药hcv9jop8ns2r.cn
砗磲是什么hcv8jop0ns7r.cn 今年27岁属什么生肖hcv7jop7ns2r.cn 后背凉凉的是什么原因sscsqa.com 尿蛋白质弱阳性是什么意思hcv8jop0ns4r.cn 麻是什么原因hcv8jop6ns4r.cn
丁克夫妻是什么意思hcv8jop6ns6r.cn 腹泻肚子疼吃什么药hcv8jop2ns7r.cn 炖鸭汤放什么食材最好baiqunet.com 处女膜是什么颜色hcv9jop7ns3r.cn 1014是什么星座hcv8jop9ns4r.cn
beyond什么意思hcv9jop3ns5r.cn 怀孕为什么要建档hcv7jop4ns8r.cn 兰姓是什么民族hcv7jop6ns5r.cn 操是什么意思hcv8jop2ns7r.cn 自主神经功能紊乱吃什么药hcv8jop8ns9r.cn
百度