ftp.nice.ch/pub/next/tools/dock/Locus.1.0.NI.bs.tar.gz#/Locus/TechDocs/FileStructure.rtf

This is FileStructure.rtf in view mode; [Download] [Up]

Copyright 1993  Jeremy Slade.

You are free to use all or any parts of the Locus project
however you wish, just give credit where credit is due.
The author (Jeremy Slade) shall not be held responsible
for any damages that result out of use or misuse of any
part of this project.

JGS Thu Apr  8 20:58:36 PDT 1993


File Structure

	The basic storage unit for Locus is the Folder, which acts as a file, but is in fact a subdirectory.  The Folder is a collection of Groups, each of which are stored in a separate file.  Along with the Group files, the Folder bundle also contains a Folder Information file, giving general info about the Folder.  See below for further details
	The main reason for having this type of file structure is for speed.  This structure allows the folder info, as well as each Group, to be written individually when it is changed, so that not all groups have to be written when a single change occurs in any of them. 
	
	
The Folder Info File

	This file is written by Folder's -writeInfo method, which uses NXTypedStreams to write the data.  The information included in this file is:
		· Folder's Viewer frame rect
		· The tag of the group currently being displayed
	This info file is saved automatically whenever the data it contains is changed.  For instance, moving or resizing the Folder's viewer will cause the file to be written, as will switching groups.
	
	
The Group Files

	Each Group in the Folder is written in its own Group file.  The name of the file is determined by the Group's tag, which is a unique integer within a Folder used to identify each Group.  The Group file contains the archived Group object, which is basically a List of the Items in that Group.  The Group object is archived using NXTypedStreams.
	
	

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.