In issues like one , it shows how to use UIKit
-(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight
it is easy to stretch PNG, for example, when you insert text in iChat like a bubble. I would like to do the same in a regular AppKit / Cocoa / desktop application using CoreGraphics or some NSImage-related API, but could not find an equivalent method. Does anyone know how to do this in AppKit?
source share