Hello, I would like to add a custom view (a pager) in the dock, just before the trash and was wondering on how to perform a such task.
Do you have any pointer to help me to start?
Thanks in advance for your help :)
regards,
Hello, I would like to add a custom view (a pager) in the dock, just before the trash and was wondering on how to perform a such task.
Do you have any pointer to help me to start?
Thanks in advance for your help :)
regards,
Take a look at the NSDockTile
class, and specifically the contentView
property. You access this through NSApplication
's dockTile
accessor. You can set a custom view to display in the dock. Keep in mind, though, that the user can make the dock very small, so you can't assume your icon will be at any particular size.
The Dock Tile Programming Guide has some pointers to get you started.