If you put up an NSAlert
while your app is in the background your dock icon starts bouncing and keeps on bouncing until you switch back.
I find this annoying.
Does anyone know how disable that for a single app?
Create your own subclass of NSApplication, and implement something like this:
- (int)requestUserAttention:(NSRequestUserAttentionType)requestType
{
if (dontDoThatBouncyThing) {
return 0;
}
return [super requestUserAttention:requestType];
}
Don't forget to change "NSPrincipalClass" in your Info.plist from NSApplication to your own NSApplication subclass.
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