Re: Placing line numbers in an nstextview
Re: Placing line numbers in an nstextview
- Subject: Re: Placing line numbers in an nstextview
- From: Koen van der Drift <email@hidden>
- Date: Thu, 10 Jul 2003 18:55:20 -0400
On Thursday, July 10, 2003, at 04:00 PM, johness does wrote:
Ok, so I'm trying to make a gutter for my textview
(you know, like the one in project builder, that has
the line numbers). I considered two options on how to
do this, one: encapsulating the nsscrollview that
holds the nstextview in question withing a seperate
view. This view would then show the number to the
side. My second option, and the one I chose becuase I
feel it is best, both in implementation and design, is
to subclass nstextview.
I have done this by subclassing NSTextView. I posted this a while ago,
see:
http://cocoa.mamasam.com/COCOADEV/2003/02/2/57189.php
Let me know if you need more help,
- 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.