• 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: Implementing Hidden text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing Hidden text


  • Subject: Re: Implementing Hidden text
  • From: Glenn Andreas <email@hidden>
  • Date: Tue, 6 Jul 2004 09:12:11 -0500

At 8:10 PM -0700 7/5/04, Mark Alldritt wrote:
Hi,

Is there a way to "hide" text in a NSTextView? I need this feature as part
of my efforts to port a code-folding text editor from Carbon/WASTE.

Cheers
-Mark

No. There are a few tricks you can play with glyph generation and the like to make part of a line disappear, but that doesn't hide entire lines.

You'll pretty much have to do what I did for IDEKIT <http://projects.gandreas.com/idekit> - keep a separate copy of the "full" text and have the text display the "visibile" text (and then try to maintain a mapping of ranges between one and the other, keep them in sync as the user or program changes the text, etc...). Or you could just use IDEKIT (or even better, contribute), since it's already a LGPLed programmer editor that does folding (it still has some bugs, mind you...)

--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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: 
 >Implementing Hidden text (From: Mark Alldritt <email@hidden>)

  • Prev by Date: Re: NSTimer questons
  • Next by Date: Using -scrollRectToVisible: in NSTextView
  • Previous by thread: Re: Implementing Hidden text
  • Next by thread: OpenGL, Objective-C++, and C++
  • Index(es):
    • Date
    • Thread