• 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: "praveen kumar" <email@hidden>
  • Date: Wed, 2 Aug 2006 18:22:33 +0530

Thanks for your advice Aki Inoue,
       I solved the issue.

    The project " TextLinks " also helps me a lot.

http://developer.apple.com/samplecode/TextLinks/index.html

On 8/2/06, Aki Inoue <email@hidden> wrote:

-drawBackgroundForGlyphRange:atPoint: renders the background with NSCompositeCopy so the multiplied value is used as is instead of blended with the existing color.

If what you need is just to fill the selection background rects, you
can manually get the fill rects via -

rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount
:.

In the meantime, please file an enhancement request.

Thanks,
Aki

On Aug 1, 2006, at 10:02 PM, praveen kumar wrote:

> Good Morning,
>                        I am drawing text on the custom view using
> NSLayoutManger methods.
>
> - (void)drawBackgroundForGlyphRange:(NSRange)glyphRange
> atPoint:(NSPoint)containerOrigin;
> - (void)drawGlyphsForGlyphRange:(NSRange)glyphRange
> atPoint:(NSPoint)containerOrigin;
>
> When i decrease the opacity of the BackgroundColor of the text to
> zero, it
> is drawing black color and also not transparent.
> It is working fine for ForegroundColor.
>
> Please could any one suggest any idea to achieve background
> transparency.
>
> Thanks a lot.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem with drawBackgroundForGlyphRange:atPoint:. (From: "praveen kumar" <email@hidden>)
 >Re: Problem with drawBackgroundForGlyphRange:atPoint:. (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Filling gradient colors in NSBezierPath
  • Next by Date: Problem with AVI file format
  • Previous by thread: Re: Problem with drawBackgroundForGlyphRange:atPoint:.
  • Next by thread: NSToolbarItem with pull down menu
  • Index(es):
    • Date
    • Thread