• 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: CATextLayer metrics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CATextLayer metrics


  • Subject: Re: CATextLayer metrics
  • From: Karl Goiser <email@hidden>
  • Date: Sat, 1 Mar 2008 09:00:55 +1100

Thanks Scott and Bill!

On 01/03/2008, at 3:42 AM, Scott Anguish wrote:

CATextLayer is largely a convenience class. It provides text features, but very little flexibility.

You can easily subclass CALayer and create your own text layer that uses NSFont, complex text layout , and all the familiar methods. Plus you'll get more flexibility.

I guess that was the answer all along..


The irksome thing is that rolling your own text layer means duplicating pretty-well all of CATextLayer (maybe that's not much!) - all for the want of some details of how the text is rendered... If details were published, it would be pretty easy to subclass and reuse - which is, of course, one of the main features and objectives of object-oriented programming.



But Scott is probably right in that I might want more flexibility than could be provided by any subclassing of CATextLayer.



Thanks again guys!


Karl

_______________________________________________

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


  • Follow-Ups:
    • Re: CATextLayer metrics
      • From: Scott Anguish <email@hidden>
References: 
 >CATextLayer metrics (From: Karl Goiser <email@hidden>)
 >Re: CATextLayer metrics (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: complex views in a tableview
  • Next by Date: Re: Apple Help question
  • Previous by thread: Re: CATextLayer metrics
  • Next by thread: Re: CATextLayer metrics
  • Index(es):
    • Date
    • Thread