Re: Cocoa-dev Digest, Vol 2, Issue 960
Re: Cocoa-dev Digest, Vol 2, Issue 960
- Subject: Re: Cocoa-dev Digest, Vol 2, Issue 960
- From: Douglas Davidson <email@hidden>
- Date: Thu, 23 Jun 2005 15:14:08 -0700
On Jun 23, 2005, at 3:04 PM, HORUS Technologies wrote: I didn't try it so maybe I overlooked something, but why wouldn't you hide the scroller of each NSTextView, put these text views side by side in an enclosing NSView, and put this "container" NSView in a NSScrollView? then you should only have to take care of setting the height of the container view so that it can display all the text in the enclosing NSTextViews, provided that they are set to grow with the enclosing view. I mean, each time the content of one of the text view changes, you would get the new height of the text in this NSTextView and set the height of the container view accordingly if necessary.
Text views don't have scrollers. The text view you drag out in IB is a text view enclosed in a scroll view. Otherwise, you're on the right track: add your two text views as subviews of an enclosing parent view, then make that parent view the document view of a scroll view.
Otherwise, maybe you can subclass NSScroller and override -trackKnob:, -trackScrollButons: and -hitPart: to send the message not only to the scroller's target but to the other views too; it could work because all the views are the same height.
Don't do this.
Douglas Davidson
|
_______________________________________________
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