• 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: Breaking on nil context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking on nil context


  • Subject: Re: Breaking on nil context
  • From: Graham Cox <email@hidden>
  • Date: Wed, 13 Feb 2013 13:25:38 +1100

On 13/02/2013, at 12:04 PM, David Duncan <email@hidden> wrote:

> Does your attributed string use an NSColor to specify the stroke color?



Maybe.... I'll check that out.

Actually that raises a point about using CoreText. There are new NSAttributedString attributes that allow you to specify CT attributes directly, such as kCTStrokeColorAttributeName, and I'm using these with CoreGraphics types generally, e.g. CGColorRef.

But, the existence of CTLineCreateWithAttributedString(), and the fact that CFAttributedString is toll-free bridged with NSAttributedString suggests to me (and is not contradicted by documentation AFAICS) that all "classic" attributes should be quietly dealt with by this function and converted as needed.

Are you suggesting that isn't true? If so that makes this very convenient function a darn sight less convenient!


--Graham



_______________________________________________

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: 
 >Breaking on nil context (From: Graham Cox <email@hidden>)
 >Re: Breaking on nil context (From: Joar Wingfors <email@hidden>)
 >Re: Breaking on nil context (From: Graham Cox <email@hidden>)
 >Re: Breaking on nil context (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Breaking on nil context
  • Next by Date: CocoaHeads Lake Forest meets at Ozate this Wednesday on VCS
  • Previous by thread: Re: Breaking on nil context
  • Next by thread: Re: Breaking on nil context
  • Index(es):
    • Date
    • Thread