If I have a particular range of glyphs that I want to put in,
say,textContainer1, and a different (as it happens, contiguous) range I
want to put in textContainer2, is there a way to do it?

I've tried 

    [layoutManager drawGlyphsForGlyphRange: glyphRangeStringOne 
atPoint:startPoint];
    
    [layoutManager drawGlyphsForGlyphRange:glyphRangeStringTwo  
atPoint:startPoint2];

Here the first range of glyphs takes up "almost all" of the first
container.   The second range of glyphs seems to start in the position of
(relative to the top left corner (isFlipped) of the second container) that
it would have occupied in the first container if it had been drawn there,
then continues from the top of the second container.


What I would like, is to "end" drawing in textContainer1 after the first
'drawGlyphs..', and have the second 'drawGlyphs...'  start out in the
textContainer2.  I can't see a way to do this using only one NSTextStorage
instance.... 

>From what I can tell, it would seem to require two NSTextStorage instances
with corresponding layout managers and textContainers.  It seems I'm
missing something.


I need a method that works with 10.4, by the way.

Best,

John Velman

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to