Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.

NSByteStoreFile

Inherits From: NSByteStore : NSObject

Conforms To: NSObject (NSObject)

Declared In: Foundation/NSByteStore.h

Class Description

NSByteStoreFile is a subclass of NSByteStore that keeps its storage in a file. NSByteStoreFile guarantees the integrity of stored data against process and system crashes when protected by transactions (described in the NSByteStore class specification), provided that the physical media remains intact.

When you create an NSByteStoreFile, you specify a storage file and open it for reading only or for both reading and writing. The methods you use to access the contents of the file are implemented in NSByteStore.

To support the use of preconfigured files, a process using an NSByteStoreFile opened for reading only may freely modify the NSByteStoreFile; all modified pages are reflected only in the address space of the process. The modifications are never written to the file and are discarded when the NSByteStoreFile is freed.

Creating and Initializing an NSByteStoreFile Instance

Accessing the Storage File

Reducing Memory Consumption