Re: Implementing Hidden text
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.