Re: Problem with drawBackgroundForGlyphRange:atPoint:
Re: Problem with drawBackgroundForGlyphRange:atPoint:
- Subject: Re: Problem with drawBackgroundForGlyphRange:atPoint:
- From: "Jjgod Jiang" <email@hidden>
- Date: Tue, 14 Aug 2007 07:29:33 +0800
Hi,
2007/8/14, Lukhnos D. Liu <email@hidden>:
> Before you draw the background, try:
>
> NSRange anotherRange;
> anotherRange = [layoutManager glyphRangeForTextContainer:textContainer];
aha, works like a charm. It's dark magic :)
- Jiang
_______________________________________________
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