Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Ken Thomases
On Oct 11, 2014, at 9:23 AM, Keary Suska wrote: > On Oct 11, 2014, at 3:53 AM, Daryle Walker wrote: > >> On Oct 10, 2014, at 1:58 AM, Ken Thomases wrote: >> >>> I tested this and it worked for me. In summary, all three steps: >>> >>> * Set the text view's max. width >>> * Set the text view

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Keary Suska
On Oct 11, 2014, at 1:31 PM, Daryle Walker wrote: > There was a minor detour where I just had “textContainer.containerSize” set. > You need BOTH “containerSize” and “widthTracksTextView” set (to {10M, 10M} > and NO, respectively). Both of these can be set in the user-defined run-time > attribu

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Daryle Walker
On Oct 11, 2014, at 10:23 AM, Keary Suska wrote: > On Oct 11, 2014, at 3:53 AM, Daryle Walker wrote: > >> On Oct 10, 2014, at 1:58 AM, Ken Thomases wrote: >> >>> On Oct 10, 2014, at 12:02 AM, Daryle Walker wrote: >>> On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote: > On Oct 7

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Keary Suska
On Oct 11, 2014, at 3:53 AM, Daryle Walker wrote: > On Oct 10, 2014, at 1:58 AM, Ken Thomases wrote: > >> On Oct 10, 2014, at 12:02 AM, Daryle Walker wrote: >> >>> On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote: >>> On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: > 1. Altho

Re: Questions on using a NSTextView as a source viewer.

2014-10-11 Thread Daryle Walker
On Oct 10, 2014, at 1:58 AM, Ken Thomases wrote: > On Oct 10, 2014, at 12:02 AM, Daryle Walker wrote: > >> On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote: >> >>> On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: >>> 1. Although the text in the window expands vertically as needed, it nev

Re: Questions on using a NSTextView as a source viewer.

2014-10-09 Thread Ken Thomases
On Oct 10, 2014, at 12:02 AM, Daryle Walker wrote: > On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote: > >> On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: >> >>> 1. Although the text in the window expands vertically as needed, it never >>> does horizontally. Wrapping always happens when line

Re: Questions on using a NSTextView as a source viewer.

2014-10-09 Thread Daryle Walker
On Oct 7, 2014, at 8:03 PM, Ken Thomases wrote: > On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: > >> 1. Although the text in the window expands vertically as needed, it never >> does horizontally. Wrapping always happens when lines are too long, but it >> adjusts as the width of the window

Re: Questions on using a NSTextView as a source viewer.

2014-10-07 Thread Ken Thomases
On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: > 1. Although the text in the window expands vertically as needed, it never > does horizontally. Wrapping always happens when lines are too long, but it > adjusts as the width of the window is changed. How do I get “infinite” space > horizontall

Re: Questions on using a NSTextView as a source viewer.

2014-10-07 Thread Daryle Walker
On Oct 7, 2014, at 6:29 PM, Daryle Walker wrote: > I implemented a new window XIB and controller class for my web-browsing > project. It’s for “View Source.” It’s active if the current page’s > WebDataSource object indicates it supports a text representation. The window > just contains a NSTex