gpt4 book ai didi

带有嵌入图像的 NSAttributedString

转载 作者:行者123 更新时间:2023-12-01 14:40:27 43 4
gpt4 key购买 nike

有没有人知道那里有任何代码可以让我阅读包含 NSAttributedString 中的图像的 RTF?

是的,我知道有 RTFD 格式和 initWithRTF 方法...但是 initWithRTF 的实现会跳过\pict 标签,所以当我将 RTF 从 Windows (MS Office) 传输到 osx 并尝试使用 NSTextView 打开它时,我看不到嵌入图像。我也用 librtf 试过了,我得到了一些不确定的结果,但在我看来,它是丑陋的解决方案

最佳答案

QuickLook 和 TextEdit 都不能处理内联附件,所以我很确定 Cocoa 不支持它们。 librtf 是您最好的选择。

关于带有嵌入图像的 NSAttributedString,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8459491/

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