macoscocoainterface-builderosx-leopardosx-tiger

Why does the dialog I created in Leopard look terrible in Tiger?


I have created a simple NSWindow with an NSTextField and an NSButton in Interface Builder on Leopard. I set the window background color in my program. Everything looks fine when I run the program in Leopard. But when I run it in Tiger, the background color of the window is not set. It has a default Tiger look with horizontal stripes.

Weirdly, the background colors of the NSTextField and NSButton controls are set to the specified window color, so they look really awful.

How can I convince Tiger to respect the color I choose in the setBackgroundColor call?


Solution

  • If I recall correctly, under Tiger you had to set the background pattern of the window if you wanted to change its color - the 'color' was overridden by the (ugly) default aqua pattern.

    On the other hand, why the heck are you writing code for Tiger? Something like 0.3% of machines out there run Tiger, and something like 100% of those are run by luddites.