🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: nl.comp.sys.mac
Article #1598

Re: Data en resource forks

#1598
From: fabio
Date: Tue, 17 Sep 2002 15:04
69 lines
4367 bytes
http://www.google.nl/search?q=data+%2Bfork+%2Bmac+%2Bresource&ie=ISO-8859-1&
hl=nl&lr=

http://www.asy.com/files.htm

Mac files have a special structure consisting of Data fork and Resource
fork. Data fork is the part where actual text and data are stored. Resource
fork keeps mostly the information used to display the icon,etc.

http://www.ufaq.org/navcom/multilinks.html

http://kb.indiana.edu/data/aarp.html?cust=8916
What is a forked file structure?

A forked file structure is a way of storing information unique to Mac OS
computers. Every Mac OS file consists of at least one of two separate pieces
of information, or forks: a data fork and often a resource fork. A file's
data fork holds raw data in an organized but relatively unintelligible
format. The resource fork consists of all the interfaces, dialog boxes,
warning boxes, and graphical user interface (GUI) information necessary to
format and present the data in a familiar and Mac OS-like way.

Not every Macintosh file has both a resource and a data fork. Many files,
such as those created by word processors and spreadsheet programs, are
entirely data. All of the extra formatting information and graphical user
interface (GUI, which creates file icons) resides in the application that
made the file, and this tells the file how to look and behave.

You can demonstrate this by making a test file with a program (for example,
Microsoft Excel) and saving it on a floppy disk. Note the appearance of the
icon on the screen: a page symbol with a stylized "X" next to a picture of a
small table. Then eject the floppy and insert it in a Macintosh that does
not have Excel installed on its hard drive or any shared drives. The icon
now is just a white page with a corner turned down. It looks totally
different! Without Excel's resources to describe how the icon should appear,
it defaults to a generic icon's appearance. You cannot open and alter the
file, because it is only raw data, with no resources to tell it how to be
manipulated.

This is useful knowledge for working with Mac OS, particularly when doing
disk recoveries. Many recovery programs can tell you what kind of damage
your file has suffered, and whether the data fork or the resource fork of
the file has been corrupted or damaged. As a general rule, if only the
resource fork has been damaged there is a better chance of retrieving the
file's contents to be entered again, or transported to a new undamaged file.

> Van: Leo Dekeo <leodekeo@yahoo.DOT.com>
> Organisatie: Ghent University
> Nieuwsgroepen: nl.comp.sys.mac,be.comp.sys.mac
> Datum: Tue, 17 Sep 2002 16:41:02 +0200
> Onderwerp: Data en resource forks
> 
> Hallo,
> 
> Hoe zit dat nu met die data en resource forks? Wat wordt er precies in
> het ene en wat in het andere gestoken?
> 
> Bij welk type files is het essentieel dat je over beide forks beschikt,
> en niet enkel over de data fork.
> 
> Welke formaten houden de forks samen (naast .sit, .bin en .hqx)?
> 
> Een gedetailleerde uitleg of een goeie link zijn welkom!
> Alvast bedankt!
> L.D.
> -- 
> When replying: remove the DOT from my e-mail address.
> Ellen Feiss for president: <http://www.apple.com/switch/ads/ellenfeiss.html>
> 
Technical Details
Message-ID: <B9AD1112.38C7%fabio@atotz.n.o.s.p.a.m.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!isdnet!cleanfeed.casema.net!leda.casema.net!newsfeed.wxs.nl!news.wxs.nl!not-for-mail
References: <3D873EFE.3080700@yahoo.DOT.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1123d2,433e28153a2977c6
X-Google-Attributes: gid1123d2,public
X-Google-Thread: 10e3f2,433e28153a2977c6
X-Google-Attributes: gid10e3f2,public
X-Google-ArrivalTime: 2002-09-17 11:10:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!isdnet!cleanfeed.casema.net!leda.casema.net!newsfeed.wxs.nl!news.wxs.nl!not-for-mail
From: fabio <fabio@atotz.n.o.s.p.a.m.com>
Newsgroups: nl.comp.sys.mac,be.comp.sys.mac
Subject: Re: Data en resource forks
Date: Tue, 17 Sep 2002 17:04:18 +0200
Organization: Planet Internet
Lines: 70
Message-ID: <B9AD1112.38C7%fabio@atotz.n.o.s.p.a.m.com>
References: <3D873EFE.3080700@yahoo.DOT.com>
NNTP-Posting-Host: ip503cf4ef.speed.planet.nl
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Trace: reader12.wxs.nl 1032275146 6449 80.60.244.239 (17 Sep 2002 15:05:46 GMT)
X-Complaints-To: abuse@planet.nl
NNTP-Posting-Date: 17 Sep 2002 15:05:46 GMT
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2106