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.
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 settingtranslatesAutoresizingMaskIntoConstraints = YES
in bothIKDeviceBrowserView
andIKScannerDeviceView
.