Cocoa window not displaying properly (or at all) on newer OS

212 views Asked by At

I developed a simple application that looks pretty much the same as Image Capture. I am using Quartz framework and IKDeviceBrowserView and IKScannerDeviceView.

When I test it on my iMac or macbook with OSX 10.7 it works fine, but when I tested on another macbooks the application is not displaying properly. One running 10.8.2 displays an empty gray window, the other running 10.8.1 displays a window and only the lower area is displayed.

I am completely new to Cocoa so I have no idea on what is going on or how to solve it. Any ideas would be highly appreciated.

EDIT: Everything is created using Interface Builder: I have a MainWindow and the two scanner views I mentioned above.

1

There are 1 answers

0
momo On BEST ANSWER

This question is actually a duplicate of IKDeviceBrowserView displays no contents on OSX Mountain Lion which I couldn't find before.

This issue is solved by setting AutoLayout on the nib and setting translatesAutoresizingMaskIntoConstraints = YES in both IKDeviceBrowserView and IKScannerDeviceView.