[英]Best way to only get some functionality from TextEdit for NSTextViews
I'm new to objective-C and I'm not sure what's the best way to finish my current project. 我是Objective-C的新手,我不确定完成当前项目的最佳方法是什么。 Basicaly, my project is a plugin for a medical software and it has as inputs 2 NSTextViews.
基本上,我的项目是一个医疗软件的插件,并且有2个NSTextViews作为输入。 I've tried to manually implement all the functionality of a text editor but some futures seem impossible for me to implement.
我已经尝试过手动实现文本编辑器的所有功能,但是某些实现对于我来说似乎是不可能的。 My question is, what is the best way to get this functionality: TextEdit Funtionality for my NSTextViews ?
我的问题是,获得此功能的最佳方法是什么: NSTextViews的TextEdit功能? Is there a better and/or easier way from doing every button and every action regarding text editing ?
是否有进行文本编辑的每个按钮和每个动作的更好和/或更容易的方法?
Check the documentation for NSTextView , specifically the section "Using Text Formatting Controls". 查看NSTextView的文档,特别是“使用文本格式设置控件”部分。
The properties rulerVisible
and usesInspectorBar
will enable the functionality in your screenshot. 属性
rulerVisible
和usesInspectorBar
将启用屏幕快照中的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.