How to hide the BadgeLabel?
Posted: Sun Apr 05, 2015 8:46 pm
can someone tell why this code doesn't work?
Code: Select all
App = CocoaMessage(0, 0, "NSApplication sharedApplication")
DockTile = CocoaMessage(0, App, "dockTile")
CocoaMessage(0, DockTile, "setBadgeLabel:$", @"Hello")
Delay(1000)
CocoaMessage(0, DockTile, "setShowsApplicationBadge:", #NO)
CocoaMessage(0, DockTile, "display")