NSAlert without a bouncing dock icon

If you install NSAlert when your application is in the background, your dock icon starts jumping and continues to jump until you return.

I find it annoying.

Does anyone know how to disable this for a single application?

+4
source share
2 answers

Create your own subclass of NSApplication and do the following:

 - (int)requestUserAttention:(NSRequestUserAttentionType)requestType { if (dontDoThatBouncyThing) { return 0; } return [super requestUserAttention:requestType]; } 

Remember to change the "NSPrincipalClass" in your Info.plist from NSApplication to your own subclass of NSApplication.

+8
source

Not that I recommend it, but there is Haxie who can help: Dock Detox .

They allow you to catch bouncing and do other things, I think.

A quick google appeared:

 - (void)cancelUserAttentionRequest:(int)request 

But I really don't know if this will work for your purposes.

0
source

All Articles