Re: NSLayoutManager subclassing
Re: NSLayoutManager subclassing
- Subject: Re: NSLayoutManager subclassing
- From: Rachel Blackman <email@hidden>
- Date: Thu, 19 Jan 2006 10:07:19 -0800
What you *could* try (I have not tired this myself) is enclosing
the text view inside another plain view without a flipped
coordinate system, then put *that* in the scroll view. You'll have
to make your enclosing view listen for frame changes in the
NSTextView (so it can grow or shrink to fit the text view). You'll
also probably have to adjust a few other things (the views'
autoresizing masks for sure, perhaps some other things), but it
shouldn't take too much effort to try it.
Interesting thought. I'd need to subclass NSTypesetter and flip the
text too, I think. Because, basically, it needs to be, when only one
line of text is in there:
|
|
|
|
|
|Look, Ma, a line of text
+------------------------
...and then if you add another line...
|
|
|
|
|Look, Ma, a line of text
|And another!
+------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden