• 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 System Architecture is really confusing me.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text System Architecture is really confusing me.


  • Subject: Re: Text System Architecture is really confusing me.
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 29 Jun 2007 16:56:25 +0100

On 29 Jun 2007, at 16:11, David Harper wrote:

4. TextViews have a reference to EXACTLY 1 text container.

My problem is with #4. I'd like to be able to customize layout within a textview in order to be able to display equations. I'm visualizing this being done by placing multiple text containers in a single view.

You do know that you can subclass NSTextContainer and override - lineFragmentRectForProposedRect:sweepDirection:movementDirection:remaini ngRect:, right?


That will give you complete control over the layout of your text, and doesn't require the use of multiple text containers.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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: 
 >Text System Architecture is really confusing me. (From: David Harper <email@hidden>)

  • Prev by Date: Text System Architecture is really confusing me.
  • Next by Date: Re: NSSegmentedControl subclass and bindings
  • Previous by thread: Text System Architecture is really confusing me.
  • Next by thread: Screenshot of another app's Window
  • Index(es):
    • Date
    • Thread