• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text Editing without NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Editing without NSTextView?


  • Subject: Re: Text Editing without NSTextView?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 9 Jan 2008 09:18:24 +0100


Le 8 janv. 08 à 19:46, Gordon Apple a écrit :

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


Have a look at CoreText (http://developer.apple.com/documentation/Carbon/Conceptual/CoreText_Programming/ ) and ATSUI (http://developer.apple.com/documentation/Carbon/Conceptual/ATSUI_Concepts/ ), it may help you in what your planning to do.



_______________________________________________

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


References: 
 >Re:Text Editing without NSTextView? (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Next by Date: Garbage collection problem
  • Previous by thread: Re:Text Editing without NSTextView?
  • Next by thread: Non-Contextual Popup Menus using NSPopupButtonCell and attachPopupWithFrame or performClickWithFrame
  • Index(es):
    • Date
    • Thread