Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Mac Programming 的新手,但我对应用程序有一些想法。我的问题是:我有一个带有 2 个单元格的 NSSegmentedControl,如果选择了 1 号单元格,我想在标签上写一些东西,例如蓝色。我怎样才能做到这一点?如果这已经被问到了,我很抱歉:/
您可以找出从 中选择了哪个元素selectedSegment。
selectedSegment
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSSegmentedControl_Class/Reference/Reference.html