Re: Text Editing without NSTextView?
Re: Text Editing without NSTextView?
- Subject: Re: Text Editing without NSTextView?
- From: "I. Savant" <email@hidden>
- Date: Tue, 8 Jan 2008 09:54:27 -0500
> 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).
This makes perfect sense if you're actively editing things. If
you're just displaying a shape with text in it, you can of course draw
the text (with similar attributes to your editing text view) into a
rectangle when drawing your shape. Check out the Sketch example in the
developer example code in your Developer folder.
--
I.S.
_______________________________________________
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