Gradients Shmadients
Jeff Dlouhy - Wednesday, June 06, 2007 at 10:50 PM
I have finally made some visible progress on Tabposé! Tonight I was able to get a grey to white gradient to display in my TabposeView. After reading up on the not so friendly CGShading I set out to get this basic component of Tabposé done. I think that this gradient helps the overall look and feel of Tabposé, similar to how exposé and dashboard have that semi-transparent background. You can find a boring screenshot of my progress here.
As I said above, CGShading is no walk in the park. Here are some links that you might find useful when you decided to add gradients to your apps. Some people will use images to get this effect; however, this will cause problems when we start seeing higher DPI screens and resolution independence in Leopard. CGShading is a wordy, yet elegant solution.
- Pimp My Code, Part 3: Gradient TableViews
- CocoaDev: CGShadingInMoreDetail
- Quartz 2D Programming Guide
With this canvas I can now start to paint my picture…

