2011-06-13 103 views

回答

1

做到这将是继承NSButton和实现它的drawRect方法最简单的方法...

  • (无效)的drawRect:(的NSRect)RECT {}

在那里,你可以创建一条贝塞尔路径或设置背景颜色等等...... 看看this other question on stack overflow