Re: Line numbers and breakpoints
Re: Line numbers and breakpoints
- Subject: Re: Line numbers and breakpoints
- From: Koen van der Drift <email@hidden>
- Date: Wed, 14 May 2003 10:51:16 -0400
Hi,
Does anybody know how to implement a textview like the one found in PB's
debugger, the one at the bottom ? My main goal is how to have line numbers
and clickable/dragable breakpoints.
I first thought about subclassing NSTextView and NSLayoutManager. Now I am
wondering if it wouldn't be better to have my textview within a superview
that would actually do the extra drawings.
Any ideas, examples ?
Bertrand,
Linenumbering was discussed a while ago on the list:
http://cocoa.mamasam.com/COCOADEV/2003/02/2/57146.php
Basically, I subclassed NSTextView and also its NSTextContainer. The
latter to tell the
text view to leave a 'gap' on the left side, and then in myTextView I
added a method drawLineNumbers.
hth,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.