title: How I can add a badge on my Dock icon using Cocoa?
body: <p>I can't add a badge to my cocoa App icon on macOs BigSur.
  I'm trying to update icon's badge in Dock with this code:</p>
  <pre><code>NSApp.dockTile.showsApplicationBadge = true    
  NSApp.dockTile.badgeLabel = &quot;12&quot;
  NSApp.dockTile.display()
  </code></pre>
  <p>But nothing happens. And I received a message in Xcode console:</p>
  <pre><code>setShowsApplicationBadge: is not yet implemented for the NSApp dockTile
  </code></pre>
  <p>Anybody can help with this?</p>