gpt4 book ai didi

cocoa - 如何在 NSTableView 中添加高度可变的 NSTextView

转载 作者:行者123 更新时间:2023-12-03 17:09:39 35 4
gpt4 key购买 nike

我在 NSTableView 中有一个 NSTextView。我希望 NSTextView 能够以这样的方式进行编辑:当我向其中添加内容时,NSTableView 和 NSTableCellView 会调整大小以显示 NSTextView 的完整内容。

Omnifocus 的此行为示例

enter image description here

最佳答案

我必须使用 NSTableView 的 noteHeightOfRowChangedWithIndexes以及controlTextdidChange以达到预期的效果。

关于cocoa - 如何在 NSTableView 中添加高度可变的 NSTextView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42169781/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com