Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 16 - Storage Objects / Storage Objects Reference
Storage Objects Routines / Creating and Accessing Macintosh Storage Objects


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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help