Jan Trembulak wrote:
> If I create NSButton programmably, the image of button is correct
> (alternate image also). But, if I load gmodel, that containts one
> NSWindow with one NSButton type of NSSwitchButton, the image of this
> button is damaged (alternate image also).
> If I create this NSButton programmably first, and then I load nib, the
> all images of Buttons are correct.

    Here's the problem:  An OPENSTEP NSSwitchButton button has a 15x15
pixel image, whereas the GNUstep version is 16x16.  The GNUstep NSImage
doesn't scale images properly yet, so you get distorted images when a
converted gmodel tries to cram a 16x16 image into a 15x15 pixel space. 
You can edit the size of the NSSwitchButton and NSHighlightedSwitch in
your gmodel, replace those GNUstep images with 15x15 versions, or put up
with it until there's image scaling code in place.

Reply via email to