Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: URL Access Manager is deprecated as of Mac OS X v10.4. You should use CFNetwork instead (as described in CFNetwork Programming Guide).

Responding to Data Transfer Events

During a call to URLOpen, data transfer events are generated after:

If you want to be notified of data transfer events, pass a Universal Procedure Pointer (UPP) to your notification callback function in the notifyProc parameter of URLOpen. To create a UPP to your notification callback, you must call the function NewURLNotifyUPP. You must also specify which data transfer events you want to receive as a bitmask in the eventRegister parameter of URLOpen. You can then manipulate the data or write it to the destination of your choice.

Your application’s notification callback function should process the event record passed by URL Access Manager in the event parameter and return 0. The only restriction that URL Access Manager imposes on the functionality of your notification callback function is that it should not call the function URLDisposeReference. For information on how to write a notification callback, see URLNotifyProcPtr.



< Previous PageNext Page > Hide TOC


Last updated: 2007-05-03




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice