code folding in NSTextView
code folding in NSTextView
- Subject: code folding in NSTextView
- From: Martin Hewitson <email@hidden>
- Date: Wed, 24 Mar 2010 17:46:01 +0100
Dear list,
I guess this is an old chestnut, but a google search didn't reveal any good clues as how one might go about doing code folding in an NSTextView subclass.
So, does anyone have any suggestions how one might implement such a feature? This is for a LaTeX editor so I'm interested in folding blocks of code between, for example, \begin{} \end{} tags, collapsing \section, \subsection, etc.
Any hints, suggestions, or ideas gratefully received.
Best wishes,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden