NSMenuItemBadge
A control that provides additional quantitative information specific to a menu item, such as the number of available updates.
Declaration
class NSMenuItemBadgeOverview
You create a badge using an initializer or a predefined factory method, and then you assign it to the badge property of a NSMenuItem for display.
[Image]
For example, to display a badge with a count, use the init(count:) initalizer, passing in the value of count as an Int.
To display a badge with a custom string, use the init(string:) initializer, passing in the string you want to display.
To display a badge using a predefined NSMenuItemBadge.BadgeType, use a factory method such as newItems(count:), passing in the count of the badge to display.
The default value of this property is nil.