The NSGradient class provides support for drawing gradient fill colors, also known as shadings in Quartz. This class provides convenience methods for drawing radial or linear (axial) gradients for rectangles and NSBezierPath objects. It also supports primitive methods that let you customize the shape of the gradient fill.
Questions tagged [nsgradient]
18 questions
0
votes
1 answer
NSGradient fade/animation
Simply put: is it possible to fade between two NSGradient "fills" on a single NSView? Eg. draw one gradient and fade to drawing the next one.

Seb Jachec
- 3,003
- 2
- 30
- 56
0
votes
1 answer
Drawing borders and highlights natively in Cocoa
How can I draw highlights and non-4-sided borders natively in Cocoa?
An example is the image below. There's a small 1px white inner border on the top and a grey 1px inner border on the bottom. There's also a dark gray border only on the top and the…

aroooo
- 4,726
- 8
- 47
- 81
0
votes
1 answer
how to set NSGradient to NSWindow background
I am new to cocoa I am try to set NSGradient to the NSWindow background but it's too difficult for me...I have try this code
NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:[NSColor orangeColor] endingColor:[NSColor…

NewStack
- 990
- 8
- 19