Re: Problem with drawBackgroundForGlyphRange:atPoint:.
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