Re: Tab-stop filled with dots?
Re: Tab-stop filled with dots?
- Subject: Re: Tab-stop filled with dots?
- From: Uko Fiedler <email@hidden>
- Date: Sun, 27 Apr 2003 12:39:14 +0200
Thank you Brian,
thank you very much. I'm so glad to get an answer. Over the last week I looked around and could not even imagine a way to heaven. Because of your answer
I believe the method you'd want is -[NSLayoutManager drawGlyphsForGlyphRange:atPoint:]
I was able to find a code snippet at
http://cocoa.mamasam.com/MACOSXDEV/2002/01/1/21298.php which is roughly similar to what I want to achieve. Thanks again, you saved my day.
Your tip leads me to another question: TextEdit and therefore my TEPx has a problem with layouting images in page view mode, when the image is to big to fit on a page these editors will hang. Is drawGlyphsForGlyphRange:atPoint: also the best place to shrink those images to avoid the following crash?
construct your text system hierarchy by hand ...
Yes I did.
It's for my personal training's editor TEPx, which is my document based partial rebuild of TextEdit. So I'm using an enhanced version of MultiplePageView.m with the drawRect mentioned earlier. But see your self, it's freely available at
http://www.wendenstr329.de/feed/cocoa/TEPx.html
uko
_______________________________________________
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.