• 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: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName


  • Subject: Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 5 Jun 2007 16:58:00 -0700


On Jun 5, 2007, at 4:52 PM, Lorenzo wrote:

when I set the NSStrokeWidthAttributeName to my string, I lose the
NSForegroundColorAttributeName attribute. So I see a transparent string with
a white stroke line. Strangely instead, the NSBackgroundColorAttributeName
works well. Do I forget something?

Read the comments in AppKit/NSAttributedString.h. NSForegroundColorAttributeName is used as the fill color. The absolute value of the stroke width attribute determines the stroke width, and the sign determines the drawing mode: stroke alone for positive values of the attribute, stroke and fill for negative values, fill only for zero or no attribute.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
      • From: Lorenzo <email@hidden>
References: 
 >NSForegroundColorAttributeName + NSStrokeWidthAttributeName (From: Lorenzo <email@hidden>)

  • Prev by Date: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
  • Next by Date: Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
  • Previous by thread: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
  • Next by thread: Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
  • Index(es):
    • Date
    • Thread