开发者

NSColor equivalent of UIColor underPageBackgroundColor to use on Mac OS X?

I'd like to use one of the iOS patterns (underPageBac开发者_高级运维kgroundColor), defined in UIColor for a Mac OS X app. Are those patterns defined in UIColor available on OS X? I didn't see anything like them in NSColor.

Basically, I'd like to use [UIColor underPageBackgroundColor] in a plain Cocoa app.

I could use a screenshot of the pattern and use [NSColor colorWithPatternImage:...], but I'd like to use the correct API (if any).

NSColor equivalent of UIColor underPageBackgroundColor to use on Mac OS X?


As of OS X Mountain Lion, there is now an official under page background color method on NSColor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜