Re:Text Editing without NSTextView?
Re:Text Editing without NSTextView?
- Subject: Re:Text Editing without NSTextView?
- From: Gordon Apple <email@hidden>
- Date: Tue, 08 Jan 2008 12:46:51 -0600
I'm about to implement something similar (for another purpose) and
really wish that they had separated the editing code from NSTextView so it
could be used more directly without the view. (I wrote my own text editor
for MacOS 9.) I'll probably just use the "Sketch" approach his time with
the floating edit view, but with my own text container.
BTW, I have a text container that works for arbitrary Bezier shapes,
including ones with holes and bumps. You can see some examples at
<www.ed4u.com/textflow>. Keep in touch if you would like to try it later.
If I can manage to compile it as a component, I may let it out for trials.
>
> Hello list-
>
> I'm building an Illustrator-like graphic editing system as part of a larger
> application I'm working on and I want the user to have the ability to add text
> objects. I'm trying to figure out the best way to do this -- ideally I'd use
> an NSTextView, but when I add the text view as a subview to the custom draw
> view where all the other shapes are drawn the text is always on top of any of
> the shapes that get rendered to the draw view (Of course).
>
> My other option is to use the text containers drawGlyphsForGlyphRange method
> -- which is fine by me, but the problem is I want the user to be able to
> select/edit the text and I'm not sure if it's even possible to do that without
> using an NSTextView.
>
> Any thoughts?
>
> Thanks!
>
> Mike
>
_______________________________________________
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