|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Cocoa||MBS MacCocoa Plugin||11.1||Yes||No||No||Yes, macOS only||No|
The NSDockTile class lets you customize the visual representation for your application's miniaturized windows and application icon as they appear in the Dock. You do not create Dock tile objects explicitly in your application. Instead, you retrieve the Dock tile for an existing window or for the application by calling that object's dockTile method.
Typically, you do not subclass the NSDockTile class. Instead, you use the methods of the class to make the following customizations:
- Badge the tile with a custom string.
- Remove or show the application icon badge.
- Draw the tile content yourself.
If you decide to draw the tile content yourself, you must provide a custom content view to handle the drawing.
Application Dock Tiles
An application Dock tile defaults to display the application's applicationIconImage.
The application Dock tile never shows a smaller application icon badge.
Whether using the default or custom view, the application Dock tile may be badged with a short custom string.
Window Dock Tiles
A window Dock tile defaults to display a miniaturized version of the windows contents with a badge derived from the application Dock icon, including any customized application Dock icon. The default window Dock tile image may not be badged with a custom string.
A window Dock tile can use a custom view to draw the Dock icon. If a custom view is used, no application badge will be added, but the text label will be overlaid on top of the icon.
Available in Mac OS X v10.5 and later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 4 properties
- 4 methods
This class has no sub classes.
Some properties using for this class:
- NSApplicationMBS.dockTile as NSDockTileMBS
The items on this page are in the following plugins: MBS MacCocoa Plugin.
MBS Xojo Chart Plugins