开发者

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

开发者 https://www.devze.com 2023-04-12 05:49 出处:网络
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 anythi

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

精彩评论

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

关注公众号