Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSAttributedString fill with gradient
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString fill with gradient

On Dec 19, 2009, at 6:21 PM, BravoBug Software wrote:

> [[NSColor selectedMenuItemColor] set];
> NSRectFill(someRect);

This works because the selectedMenuItemColor is a pattern that happens to draw a gradient. You could just as easily draw nearly anything with a pattern, and Quartz treats patterns just like colors.
David Duncan
Apple DTS Animation and Printing


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 >NSAttributedString fill with gradient (From: Chris Purcell <email@hidden>)
 >Re: NSAttributedString fill with gradient (From: Graham Cox <email@hidden>)
 >Re: NSAttributedString fill with gradient (From: BravoBug Software <email@hidden>)

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.