我怎样才能设置NSTextView为NSAttributedString?我不想使用textConainer,我试过:
[myTextView insertText:myMutableAttributedString];
Run Code Online (Sandbox Code Playgroud)
但它不起作用.什么都没发生......甚至没有警告或运行时错误.任何帮助,将不胜感激.
我需要在cocoa中退出其他应用程序.我有一个来自通知的userInfo字典,告诉我应用程序的名称.我尝试使用terminate和forceTerminate方法,但是它们不起作用(我认为它们只适用于雪豹.)