cost 82 ms
如何显示嵌入在NSPopover中的NSMenu? - How to display an NSMenu embedded in a NSPopover?

有没有办法让NSMenu像对象显示为NSPopover内容? 基本上我想重现当你右键点击应用程序图标时macOS Dock所做的事情(我不介意这里的黑暗背景,我只对将菜单以类似popover的窗口样式显示而感兴趣指向其目标的箭头)。 我一直在研究NSPopUpButton作用,但我找 ...

可可NSPopUpButtonCell不显示所选值 - Cocoa NSPopUpButtonCell not displaying selected value

背景 我有一个3列的NSTableView,其中之一有一个NSPopUpButtonCell。 我在使用数据绑定来填充单元格数据方面一直没有成功,因此我现在正在尝试通过使用addItemsWithTitles编程设置值来尝试一种新方法。 尽管此方法已成功加载值,但它无法显示所选 ...

嵌入绑定的NSTableColumn中时出现NSPopUpButtonCell错误 - NSPopUpButtonCell error when embedded in an NSTableColumn that is bound

当在NSPopUpButtonCell类型的NSTableView中绑定单元格时,出现错误 现实情况是,我只是将NSPopUpButtonCell的内容作为字符串 但是我改变了 至 这使我的应用程序加载,但是尝试将内容显示到显示NSPopUpButtonCell列的 ...

带有InlineButton样式的NSPopUpButton记录“Unknown bezel style 15和/或control size 1” - NSPopUpButton with InlineButton style logs “Unknown bezel style 15 and/or control size 1”

我有一个内联按钮样式的NSPopUpButton。 当鼠标进入,退出或鼠标按下或鼠标向上时,它会记录“Unknown bezel style 15和/或control size 1” 15是来自NSButtonCell.h的NSInlineButtonStyle 奇怪的是,一切都 ...

NSPopupButton内容绑定到NSAttributedString - NSPopupButton content binding to NSAttributedString

我有一个NSArrayController动态填充一个包含一堆列的表,其中一列有一个弹出按钮。 弹出按钮单元格的内容需要使用NSAttributedString因为我需要显示带有下标的科学变量(例如,X1低于1)。 将弹出单元格的content values绑定到NSAttributed ...

NSPopUpButtonCell indexOfSelectedItem始终返回0 - NSPopUpButtonCell indexOfSelectedItem always returns 0

我有一个NSTableView,每个单元格包含一个NSPopUpButtonCell 。 我已经将NSPopUpButtonCell的操作设置为只检查所选索引的方法(这样就可以保存该索引并重新加载表)。 无论我选择什么,它都表示所选索引为0,即使不是。 你知道是什么原因造成的吗? ...

为什么仅调用setObjectValue:nil时NSPopUpButtonCell可以正确显示? - Why is NSPopUpButtonCell showing correctly when only setObjectValue:nil is called?

NSTableView具有多个NSCell (通过NSTableColumn间接地)。 NSCell遵循Flyweight设计模式; 他们是小甜饼。 每列有一个单元格,并要求为每一行绘制自身。 “这是一个值,将其绘制在第一行上;这是第二行的值,依此类推。” 这与每个单元都有一个视图实例 ...

您可以在NSPopupButtonCell的NSTableColumn中绑定哪些东西? - What are all the things you can bind to in a NSTableColumn of NSPopupButtonCell?

您可以在装有NSPopupButtonCell的NSTableColumn中绑定很多东西,我试图四处寻找解释,但似乎找不到任何东西。 值选择下的绑定分别用于什么? 例如,“内容”和“内容值”之间有什么区别? 为什么“内容对象”仍然显示为灰色? 为什么绑定到表格列而不 ...

使用NSTableViewDataSource填充NSPopUpButtonCell的正确方法 - Proper way to populate NSPopUpButtonCell using NSTableViewDataSource

可以说一个人有很多汽车,而他们有自己喜欢的汽车。 我似乎无法在文档中找到它描述了在表格视图中填充NSPopUpButtonCell的正确方法的方式,每行的方式各不相同。 例如,我每个人都有1行,“收藏夹汽车”列中将有一个NSPopUpButtonCell。 每行都有不同的菜单项。 第 ...

NSPopupButtonCell绑定问题 - Problem with NSPopupButtonCell bindings

我正在尝试实现类似于Apple Master-Detail弹出单元格示例的功能,但是绑定似乎对我没有用。 我的应用程序允许用户建立舞台剧; 所以我有一个acts的表格视图。 每个行为都可以具有lines列表,因此行为表视图可以驱动行的第二个表视图(因此选择一个行为时,将使用该行为的行来 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM