16 Creating and Accessing Macintosh Storage Objects

16 Q3MacintoshStorage_New

You can use the Q3MacintoshStorage_New function to create a new Macintosh storage object.

TQ3StorageObject Q3MacintoshStorage_New (short fsRefNum);
fsRefNum A file reference number of the data fork of a Macintosh file. This file must already be open.

DESCRIPTION


The Q3MacintoshStorage_New function returns, as its function result, a new storage object associated with the Macintosh file specified by the fsRefNum parameter. The specified file is assumed to be open, and it must remain open as long as you use the returned storage object. In addition, you are responsible for closing the file once the associated storage object has been closed or disposed of. If Q3MacintoshStorage_New cannot create a new storage object, it returns the value NULL.

ERRORS


kQ3ErrorOutOfMemory

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