| Mac OS X header: | Carbon/Carbon.h |
| Mac OS 9 header: | URLAccess.h |
| Creating and Disposing of a URL Reference Functions | |
| URLNewReference | Creates a URL reference. |
| URLDisposeReference | Disposes of the memory associated with a URL reference. |
URLNewReference |
| Carbon status: | Supported |
Creates a URL reference.
OSStatus URLNewReference (
const char *url,
URLReference *urlRef
);
A pointer to a C string representing the name of the URL you want to create.
On return, a pointer to the newly-created URL reference.
A result code.
The URLNewReference function creates a URL reference that you can use in subsequent calls to the URL Access Manager. When you no longer need a URL reference, you should dispose of its memory by calling the function URLDisposeReference.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
URLDisposeReference |
| Carbon status: | Supported |
Disposes of the memory associated with a URL reference.
OSStatus URLDisposeReference (
URLReference urlRef
);
A reference to the URL whose associated memory you wish to dispose of. You should call the URLDisposeReference function to release the memory occupied by a URL reference when you are finished with it.
A result code.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
You must call the URLDisposeReference function to dispose of the reference associated with a URL reference even if the data transfer operation fails. Failure to call URLDisposeReference may result in thread or memory leaks.
© 2001 Apple Computer, Inc. (Last Updated July 21, 2001)