If you’re interested in an editor, try WyzihatKit [1] or my own fork of it [2]. Currently, it wraps around the editor provided in the Google Closure Library, and allows HTML editing. Last time I checked, it works with KVO.
One caveat: It’s an HTML editor, so it will work with HTML. If you’d rather it not work with HTML, it’s probably a better idea to roll your own wrapper around a <textarea>.
[1] https://github.com/aljungberg/WyzihatKit
[2] https://github.com/iridia/WyzihatKit
:)
On Feb 12, 2012, at 10:44 AM, Joe Wollard wrote:
> Hey folks - hopefully a quickie here. I'd like to be able to display the
> contents of a file in some kind of CPScrollView-wrapped element. Ideally
> this element would also be editable and would preserve line breaks.
> CPTextField doesn't quite fit the bill in its current state (line breaks
> are lost upon editing) and nib2cib doesn't understand NSTextView. Ideally,
> a suitable candidate for my situation would meet the following requirements:
>
>
> - display a string of arbitrary length
> - preserves line breaks in both display and edit modes
> - allows the user to scroll through the content
> - would like very much if...
> - KVO support is included
> - Xcode/nib2cib support an added bonus
>
> Obviously I'm not looking for anyone to write something for me, I'm just
> hoping that there's an easy solution/workaround to this issue that I've
> just overlooked and/or not Googled appropriately for.
>
> Any ideas?
>
> Thanks!
> -- Joe Wollard
>
> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To post to this group, send email to objec...@googlegroups.com.
> To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.
>
Thanks again!
---
Joe Wollard