I'm trying to implement a tabbar similar to the ones in XCode 4:
I could implement a simple tab control with custom images, but I'd like to apply that inner shadow effect programmatically. I'd like to supply simple icons only using one color without any gradient or shadow effect, basically just the shape of the icon. Then I would paint it black, blur it and draw it. During drawing I need to clip to the original shape however. Could someone point me to the right direction/classes? I searched through Cocoa Drawing documentation but didn't find anything. Thanks!