• 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: code folding in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code folding in NSTextView


  • Subject: Re: code folding in NSTextView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 25 Mar 2010 08:44:39 +0700

On 25 Mar 2010, at 00:02, Martin Hewitson <email@hidden> wrote:

> 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.

I have an editor which is able to fold away indented text (like the Editor in NeXTstep did).
The folded-away text gets deleted and put into a text attribute.

Any operation which is supposed to scan the whole text (including folded away sections) (e.g. find, replace, go to a line number etc.) gets a bit more complicated.

Kind regards,

Gerriet.

_______________________________________________

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

  • Prev by Date: [Xcode 3.1.4] "Step Into" broken on Leopard
  • Next by Date: Re: [Xcode 3.1.4] "Step Into" broken on Leopard
  • Previous by thread: Re: code folding in NSTextView
  • Next by thread: [Xcode 3.1.4] "Step Into" broken on Leopard
  • Index(es):
    • Date
    • Thread