3
A
回答
2
你可能會繼承NSButton的子類並覆蓋hitTest:
在想要點擊的區域之外返回nil。 (返回[super hitTest:]
裏面的時候。)
相關問題
- 1. 自定義形狀NSButton
- 2. 使NSButton處於非活動狀態
- 3. NSButton與右下角三角形
- 4. 是否可以製作圓形的NSButton?
- 5. OpenGL非方形紋理
- 6. 非正方形佈局
- 7. NSButton bezelColor
- 8. NSButton +& - Button
- 9. NSButton makeFirstResponder
- 10. 簡單的NSButton隱藏另一個NSButton
- 11. 如何使NSButton在NSButton之上?
- 12. NSTableView內的NSButton以編程方式?
- 13. 子類以編程方式添加NSButton?
- 14. NSAnimationContext不爲NSButton
- 15. 的iPhoto像NSButton
- 16. NSButtonCell vs NSButton
- 17. 拖放到NSButton
- 18. Non-Editable NSButton-CheckBox
- 19. 陣列NSButton
- 20. NSButton中的NSProgressIndicator
- 21. 刪除NSButton
- 22. NSShadow與NSButton子
- 23. NSButton Mousedown事件
- 24. NSButton with popover programatically
- 25. NSButton(Cell)setFont
- 26. NSButton超過QTCaptureView
- 27. 非方形物體的碰撞檢測
- 28. WebGL:數據到非方形alpha紋理
- 29. Leafletjs是否支持非方形瓷磚
- 30. 在lwuit中旋轉非方形圖像
我發現正是我需要在這裏:http://www.harmless.de/cocoa-code.php AMShapedButton類 – andron 2012-04-26 08:22:01