简体   繁体   English

从NSEditViews的TextEdit仅获得某些功能的最佳方法

[英]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 ? 我的问题是,获得此功能的最佳方法是什么: NSTextViewsTextEdit功能? 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. 属性rulerVisibleusesInspectorBar将启用屏幕快照中的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode中利用点击功能制作图像的最佳方法? - best way to make images with tap functionality in Xcode? 我无法从后台应用程序中获取TextEdit应用程序中所选文本的范围 - I am not able to get the range of selected text in TextEdit application from my background application 在移动版Adobe AIR中重现QLPreviewController功能的最佳方法是什么? - What is the best way to reproduce QLPreviewController functionality in Adobe AIR for mobile? 从detailViewController获取布尔值的最佳方法是什么? - What's the best way to get a bool value from a detailViewController? 从纯文本.txt文件获取文本到滚动视图的最佳方法 - best way to get text from a plain .txt file into a Scroll View 从UITableView获取“拉动刷新”的最佳方法是什么? - What's the Best Way to Get a “Pull to Refresh” from a UITableView? 从URL连续获取新数据的最佳方法? - Best way to continuously get new new data from a URL? 从NSImage对象获取最高位图表示的最佳方法是什么 - What is best way to get highest bitmap representation from NSImage object 获取链接并消除所有混乱,仅关注内容-在Objective-C中做到这一点的最佳方法是什么? - Get a link and removing all the clutter and only focusing on the content - what's the best way to do this in Objective-C? 多个NSTextViews之间的顺序选择 - Sequential selection among multiple NSTextViews
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM