macos:Standard-pointers
出自UXGuide.net
Standard Pointers
Table 12-1 shows the standard pointers and explains when to use each. The “API information” column gives the constants to implement them in Cocoa or Carbon.
Table 12-1 Standard pointers in Mac OS X
| Pointer | Use | API information |
|---|---|---|
Arrow
| Menu bar, desktop, scroll bar, resize control, title bar, close button, zoom button, minimize button, other controls. | Carbon: kThemeArrowCursorCocoa: arrowCursor
|
Contextual menu
| Indicates the user can open a contextual menu for an item. Shown when the user presses the Control key while the pointer is over an object with a contextual menu. | Carbon: kThemeContextualMenuArrowCursorCocoa: Not available |
Alias
| Indicates the drag destination will have an alias for the original object (the original object will not be moved). | Carbon: kThemeAliasArrowCursorCocoa: Not available |
Poof
| Indicates that the proxy object being dragged will go away, without deleting the original object, if the mouse button is released. Used only for proxy objects. | Carbon: kThemePoofCursorCocoa: disappearingItemCursor
|
Copy
| Indicates that the drag destination will have a copy of the original object (the original object will not be moved). | Carbon: kThemeCopyArrowCursorCocoa: Not available |
Not allowed
| Indicates an invalid drag destination. | Carbon: kThemeNotAllowedCursorCocoa: Not available |
I beam
| Selecting and inserting text. | Carbon: kThemeIBeamCursorCocoa: IBeamCursor
|
Crosshair
| Precise rectangular selection, especially useful for graphics objects. | Carbon: kThemeCrossCursorCocoa: crosshairCursor
|
Pointing hand
| URL links. | Carbon: kThemePointingHandCursorCocoa: pointingHandCursor
|
Open hand
| Indicates that an item can be manipulated within its containing view. | Carbon: kThemeOpenHandCursorCocoa: openHandCursor
|
Closed hand
| Pushing, sliding, or adjusting an object within a containing view. | Carbon: kThemeClosedHandCursorCocoa: closedHandCursor
|
Move left
| Moving or resizing an object, usually a splitter, to the left. Use when the user can move the object only in the indicated direction. | Carbon: kThemeResizeLeftCursorCocoa: resizeLeftCursor
|
Move right
| Moving or resizing an object, usually a splitter, to the right. Use when the user can move the object only in the indicated direction. | Carbon: kThemeResizeRightCursorCocoa: resizeRightCursor
|
Move left or right
| Moving or resizing an object, usually a splitter, to the left or the right. | Carbon: kThemeResizeLeftRightCursorCocoa: resizeLeftRightCursor
|
Move up
| Moving or resizing an object, usually a splitter, upward. Use when the user can move the object only in the indicated direction. | Carbon: kThemeResizeUpCursorCocoa: resizeUpCursor
|
Move down
| Moving or resizing an object, usually a splitter, downward. Use when the user can move the object only in the indicated direction. | Carbon: kThemeResizeDownCursorCocoa: resizeDownCursor
|
Move up or down
| Moving or resizing an object, usually a pane splitter, either upward or downward. | Carbon: kThemeResizeUpDownCursorCocoa: resizeUpDownCursor
|
The spinning wait cursor (see Figure 12-1) is displayed automatically by the window server when an application cannot handle all of the events it receives. If an application does not respond for about 2 to 4 seconds, the spinning wait cursor appears. You should try to avoid situations in your application in which the spinning wait cursor will be displayed. The Spin Control application provided with Xcode can help you eliminate code that is causing this cursor.
Figure 12-1 Spinning wait cursor