On 3 Dec 2013, at 1:59 am, Leonardo <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to