16 Creating and Accessing FSSpec Storage Objects

16 Q3FSSpecStorage_New

You can use the Q3FSSpecStorage_New function to create a new memory storage object specified using a file system specification structure.

TQ3StorageObject Q3FSSpecStorage_New (const FSSpec *fs);
fs A file system specification structure specifying the name and location of a Macintosh file.

DESCRIPTION


The Q3FSSpecStorage_New function returns, as its function result, a new storage object associated with the Macintosh file specified by the fs parameter. The specified file is assumed to be closed. QuickDraw3D opens the file, and, when the associated storage object is closed or disposed of, QuickDraw3D closes the file. If Q3FSSpecStorage_New cannot create a new storage object, it returns the value NULL.

ERRORS


kQ3ErrorOutOfMemory
kQ3ErrorNULLParameter

DESCRIPTION
ERRORS

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker