• 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: Aki Inoue <email@hidden>
  • Date: Tue, 1 Aug 2006 22:27:02 -0700

-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
  • Follow-Ups:
    • Re: Problem with drawBackgroundForGlyphRange:atPoint:.
      • From: "praveen kumar" <email@hidden>
References: 
 >Problem with drawBackgroundForGlyphRange:atPoint:. (From: "praveen kumar" <email@hidden>)

  • Prev by Date: RedMon
  • Next by Date: Re: NSToolbarItem with pull down menu
  • Previous by thread: Problem with drawBackgroundForGlyphRange:atPoint:.
  • Next by thread: Re: Problem with drawBackgroundForGlyphRange:atPoint:.
  • Index(es):
    • Date
    • Thread