• 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
Calling setLineFragment on typesetter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling setLineFragment on typesetter


  • Subject: Calling setLineFragment on typesetter
  • From: Manoj Patwardhan <email@hidden>
  • Date: Fri, 25 Jul 2008 09:49:25 -0400

I have two line fragments in a line and the first one contains an inline image. In the willSetLineFragment method of my typesetter subclass, while processing the second line fragment, I need to go back and fix the baseline offset in the first line fragment. To do that I call setLineFragment of the typesetter. As soon as I do that, the inline image in that fragment no longer gets drawn. Instead, a small square appears in its place. The characters are drawn fine. If I don't call setLineFragment to adjust the first line fragment, while in the willSetLineFragment method that is processing the second fragment, it is fine.

Since I absolutely need to call setLineFragment from inside willSetLineFragment in order to re-adjust the baseline for the first line fragment, what else do I need to do to so that the inline image in the first line fragment still gets drawn.

Thanks!
Manoj Patwardhan
_______________________________________________

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


  • Prev by Date: Re: Retrieving the current -[NSShadow set]
  • Next by Date: Re: Retrieving the current -[NSShadow set]
  • Previous by thread: Re: Retrieving the current -[NSShadow set]
  • Next by thread: Folder sharing attributes
  • Index(es):
    • Date
    • Thread