You could probably create a custom subclass of NSButtonCell
and use the Application Kit's NSDrawThreePartImage() function in the cell's drawInteriorWithFrame:inView:
method.
For more info on how to use NSDrawThreePartImage()
, see Cocoa Drawing Guide: Drawing Resizable Textures Using Images.