How can we bounce the dock icon of our application?
This means that particular application needs you—click on the jumping icon and that application will “come forward.” Then you will probably see a message on the screen that needs to be taken care of, such as “Do you want to save this document” or “This application couldn't do what you wanted.” Just do what it wants you ...
You can use the requestUserAttention:
from NSApplication. The NSRequestUserAttentionType
allows you to specify whether the Dock icon will bounce once or until the application is activated.
sorry it works... my focus was on my application when I test it... Its works when my focus is not on application
[NSApp requestUserAttention:NSCriticalRequest];
Is any way to bounce the icon even focus on application...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With