On Jan 28, 2009, at 22:32, Kyle Sluder wrote:

On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie <tom.da...@gmail.com> wrote:
This solution will also throw sub-pixel anti-aliasing in the bin.

Perhaps the better solution is to draw the text as normal and then
re-draw the background with the appropriate alpha on top.

OK, I'll be the killjoy.

Perhaps the even better solution is not to spend the time on doing the fading at all.

The notable case (AFAIK) of using this text-fades-out effect is in path controls, where its function seems to be not so much to look cool (although it *does* look cool), but to indicate to the user that there is more text *that can be revealed by mousing over the incomplete text*. The reveal itself is an even cooler animation involving stuff sliding as well as fading in.

If the OP is intending to provide the text-reveal animation too, there's more coding to do than just getting a sub-pixel-anti-aliased text fade to look right. If it serves no functional purpose (like it does in the path control), then maybe it's not such a great idea.

Compare the path control metaphor to the table view metaphor. Truncated text in a table view column typically gets fadeless truncation and a "...", and the full text reveal is a tool-tip-style overlay, not an animation.

So what's the correct UI metaphor in the OP's scenario? Perhaps not fading after all.

FWIW


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to