On Sun, Feb 1, 2009 at 4:35 AM, Benjamin Dobson <importedfromsp...@googlemail.com> wrote: > Am I missing something or could you use an NSGradient object to do this?
Sure, if you used a gradient or solid color to draw the background in the first place. Just give the starting color an alpha of 0 and the ending color an alpha of 1. Or you could follow Ken Ferry's advice and take the direct approach by applying a gradient mask to the context before drawing the text. That's probably the best way to do it. --Kyle Sluder _______________________________________________ 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