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: HORUS Technologies <email@hidden>
- Date: Fri, 24 Jun 2005 00:04:13 +0200
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.
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.
Just a quick thought...
Olivier
Le 23 juin 2005, à 08:52, email@hidden a écrit :
1 would like to have several NSTextViews of the same height sharing
the same NSScroller, which would be placed outside of those
nstextviews.
_______________________________________________
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