How to draw text inner shadow on Cocoa for Mac OS X
问题 How do I draw an inner shadow on a text in Cocoa for Mac OS X? I am subclassing NSView to create a placeholder control with a gradient background and an inner shadowed text title over it. All current Core Graphics answers on stackoverflow seem to explain drawing text shadows on Cocoa Touch. 回答1: You might think too complicated. If I get your problem right, the only thing you actually want to do is to set the text style. Then do so by simply using: [[object cell] setBackgroundStyle