• 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: Problem with drawBackgroundForGlyphRange:atPoint:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with drawBackgroundForGlyphRange:atPoint: (From: "Jjgod Jiang" <email@hidden>)
 >Re: Problem with drawBackgroundForGlyphRange:atPoint: (From: "Lukhnos D. Liu" <email@hidden>)

  • Prev by Date: Re: Scanner Question (Not NSScanner)
  • Next by Date: Re: drawing a simple string with NSFont
  • Previous by thread: Re: Problem with drawBackgroundForGlyphRange:atPoint:
  • Next by thread: Notification of device insertion/removal
  • Index(es):
    • Date
    • Thread