I am working on drawing custom buttons / text fields using NSDrawNinePartImage . I slice the image into nine pieces of code and draw it into a rectangle using NSDrawNinePartImage .
Unfortunately, I get some spaces in the drawing template. I thought this was due to my cutting codec, but I saved them in the form of images from which I cut them, and they all look good (I even put them together and they looked good). Some of the cases when I use it to work just fine, even though some use the same images.
I am pretty sure that it comes down to the actual drawing.
Are you aware of any NSGraphicsContext or other settings that will affect it or anything else that might cause this?
With spaces

Without spaces

source share