NSRunAlertPanel not working in Tiger, though it works on Leopard and Snow Leopard

Posted by benson Ang on Stack Overflow See other posts from Stack Overflow or by benson Ang
Published on 2010-03-12T09:19:41Z Indexed on 2010/03/12 10:57 UTC
Read the original article Hit count: 331

Filed under:
|

I'm currently using NSRunAlertPanel to display a dialog.

It works perfectly in Leopard and Snow Leopard. In Tiger, it also works except for the icon.

In Leopard and Snow Leopard, the icon I used for the App is displayed on the left side of the strings. This is the expected behavior.

However, in Tiger, there is a big margin on the left side of the strings, the icon is missing but the gap for the icon is there.

Here's how i used the code:

NSRunAlertPanel(@"My Application", @"My Application's string contents", @"OK", nil, nil);

I really need to know why this happens. I did not add any code for the icon to appear in leopard and snow, but it's there.

Thanks.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nsrunalertpanel