Changes in this version
Pages missing from one check, then back (no net change).
- Not assessed
4 sections
- Token fieldsToken fields: added, 163 words Not marked in the text. Go to the first change on this page
- Token fields › Best practicesBest practices: added, 101 words
- Token fields › Platform considerationsPlatform considerations: added, 11 words
- Token fields › ResourcesResources: added, 12 words
4 sections · 21 additions, 0 deletions
Other pages in this version: 1374 sections on 156 pages. All pages changed in v15
Summaries are written automatically and may be wrong; the diff below is the record.
Why this level
Rules computed from the old and new text set the range a level may take; the level is then chosen within it.
- Token fields: Not assessed
- Rules require at least Notable: the section is new.
- Token fields › Best practices: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; the section is new.
- Token fields › Platform considerations: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; a region, platform, program or kind of app was named or dropped; the section is new.
- Token fields › Resources: Not assessed
- Rules require at least Notable: the section is new.
Assessment history
- : recorded from earlier history (proposed)
Token fields
For example, Mail uses token fields for the address fields in the compose window. As people enter recipients, Mail converts the text that represents each recipient’s name into a token. People can select these recipient tokens and drag to reorder them or move them into a different field.
You can configure a token field to present people with a list of suggestions as they enter text into the field. For example, Mail suggests recipients as people type in an address field. When people select a suggested recipient, Mail inserts the recipient into the field as a token.
An individual token can also include a contextual menu that offers information about the token or editing options. For example, a recipient token in Mail includes a contextual menu with commands for editing the recipient name, marking the recipient as a VIP, and viewing the recipient’s contact card, among others.
Tokens can also represent search terms in some situations; for guidance, see Search fields.
Not assessed · Best practicesBest practices
Add value with a context menu. People often benefit from a context menu with additional options or information about a token.
Consider providing additional ways to convert text into tokens. By default, text people enter turns into a token whenever they type a comma. You can specify additional shortcuts, such as pressing Return, that also invoke this action.
Consider customizing the delay the system uses before showing suggested tokens. By default, suggestions appear immediately. However, suggestions that appear too quickly may distract people while they’re typing. If your app suggests tokens, consider adjusting the delay to a comfortable level.
Not assessed · Platform considerationsPlatform considerations
Not supported in iOS, iPadOS, tvOS, visionOS, and watchOS.
Not assessed · ResourcesResources
Related
Developer documentation
NSTokenField — AppKit