NSView that follows the tracking of a NSScrollView
NSView that follows the tracking of a NSScrollView
- Subject: NSView that follows the tracking of a NSScrollView
- From: Jérome Foucher <email@hidden>
- Date: Thu, 14 Oct 2004 10:27:49 +0200
Hi all,
I'm trying to achieve the following :
- having a scroll view that embeds a NSTextView (easy)
- the NSTextView has two side-views, one at its left, and one at its
right, that display indexes. The indexes are proportional to the line
number
Of course, when the NSTextView grows, beacuse the user typed something
in it, the scroll view should be notified about it and adjust its
indicator accordingly, and the side-views should follow the NSTextView
when it grows or scroll.
If I'm not clear, think about XCode's gutter, where some arrows show
the breakpoints, errors.... Instead of having one gutter at the left of
the text view, I have one on both left and right sides.
Does anybody have some sample code for that ? Or at least some advices
as to how to code it ?
Right now, I tried to embed the NSTextView AND its two side views
inside the NSScrollView, but I can't manage to have them scroll or
grows correctly. It's driving me nuts !
Thanks
Jérome
_______________________________________________
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