• 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: Line numbers and breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSTableView, file promises, and the message queue
  • Next by Date: piping a shell result to display it
  • Previous by thread: Line numbers and breakpoints
  • Next by thread: Mimic Finder File Listing
  • Index(es):
    • Date
    • Thread