以编程方式创建 Cocoa 单选按钮
我需要以编程方式制作一个 Cocoa 单选按钮,任何人都可以解释如何做到这一点或如何做得好?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我需要以编程方式制作一个 Cocoa 单选按钮,任何人都可以解释如何做到这一点或如何做得好?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
以下是以编程方式创建单选按钮的示例代码:
玩得开心!是的,这取自 此处,但我添加了一些个人评论来解释该过程。
Here's a sample code for creating radio buttons programmatically:
Have fun! Yes, this is taken from here, but i added some personal comments to explain the process.
摘自此处:
另请参阅此链接,了解有关如何以编程方式制作 NSMatrix 的更多示例代码。
Taken from here:
Also see this link for more sample code on how to make an NSMatrix programatically.
NSButton 类参考位于此处
按钮编程主题,特别是单选按钮(带有示例代码)
可以在这里找到
The NSButton Class reference is here
Button programming topics, specifically Radio Button (with sample code)
can be found here