Re: Non-View Text Engine
Re: Non-View Text Engine
- Subject: Re: Non-View Text Engine
- From: Douglas Davidson <email@hidden>
- Date: Fri, 26 Sep 2003 14:39:21 -0700
On Friday, September 26, 2003, at 02:10 PM, Gordon Apple wrote:
It is clear that I can eventually piece together what I want.
NSTextView
in fact does just that. Unfortunately, as I described, I don't want
it in a
separate view because I want my own layering as draw-objects within a
NSView
and do not want this text drawn in normal view order. That means
either
extracting the code I need from NSTextView (is it available?), writing
my
own (which I've done before), or subverting the view hierarchy (which I
often did in MacApp).
It is not clear to me exactly what you intend, but you might also want
to take a look at the Sketch example, which exhibits a common
technique--it has its own view class with its own drawing order for
objects within it, including both text blocks and geometric shapes.
When a text block needs to be edited, an NSTextView is instantiated and
temporarily inserted at the appropriate location for editing.
Douglas Davidson
_______________________________________________
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.