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


Initializing Cursors


InitCursor Sets the current cursor to the standard arrow (level 0) and makes it visible.


InitCursor


Sets the current cursor to the standard arrow (level 0) and makes it visible.

void InitCursor ();
Discussion

When your application starts up, the Finder sets the cursor to a wristwatch; this indicates that a short operation is in progress. When your application nears completion of its initialization tasks, it should call this function to change the cursor form a wristwatch to an arrow.

A value of –1 makes the cursor invisible. The cursor level keeps track of the number of times the cursor has been hidden to compensate for nested calls to the HideCursor and ShowCursor functions.

Availability

Available in CarbonLib 1.0 and later when running Mac OS 8.1 or later. Available in Mac OS X version 10.0 and later.

Header: Quickdraw.h

Carbon Porting Notes

When your Carbon application is launched, the system sets the cursor to the watch cursor. Your application should call InitCursor at the end of its startup initialization process, to reset the cursor.





Last updated: 2004-02-26

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice