1

I have tried many objects in Xcode's object library, but I can't seem to find the correct objects.

What I am trying to do is create a log for my app, for development purposes, but also for any future users who just feel like having a log. I don't want to use NSLog(NSString). I need an Obj-C equivalent of Java's javax.swing.JTextArea that has the following properties:
1. can be contained in a scroll pane (and how do I do this)
2. can be set to un-editable (Java equivalent of myTextArea.setEditable(false))
3. (in code) can receive \n as "new line" (shouldn't be a problem)

Does this exist, and if not, how can I create something similar (for example covering a text area with a layer)?

Thanks

4

1 回答 1

0

Cocoa 的NSTextView课程非常适合这一点。它可以在对象库中作为“文本视图”找到。它可以在属性检查器中设置为不可编辑,并且可以"\n"作为新行接收。它已经有滚动条。

于 2013-12-26T14:45:49.713 回答