• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Placing line numbers in an nstextview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Placing line numbers in an nstextview (From: johness does <email@hidden>)

  • Prev by Date: Sorting in an NSTableView
  • Next by Date: Re: Sorting in an NSTableView
  • Previous by thread: Placing line numbers in an nstextview
  • Next by thread: Changing font in an NSTableView
  • Index(es):
    • Date
    • Thread