Re: NSShadowAttributeName doesn't scale
Re: NSShadowAttributeName doesn't scale
- Subject: Re: NSShadowAttributeName doesn't scale
- From: Graham Cox <email@hidden>
- Date: Tue, 03 Dec 2013 10:52:09 +0100
On 3 Dec 2013, at 1:59 am, Leonardo <email@hidden> wrote:
> It seems that rendering the text doesn’t call the shadow’s set method.
I guess not. Thing about text rendering is, that it needs to be highly optimised, so I expect that the shadow object is only being used as a way to convey the shadow settings, not to actually set them.
Your solution seems OK, except for the pasting thing (though you also should scale the blur radius if you want the shadow to be ‘correct’ at all scales). If you make your shadow class conform to NSCopying and NSCoding, including your added ivar, does that allow it to be pasted? At some point those methods may well be how a shadow gets transferred through a pasteboard.
--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