Re: CATextLayer metrics
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