I'm trying to recreate a menu that looks like the contextual menu of the Dock.
I'm drawing a background using a NSBezierPath
. As you might see, the border of the Dock's menu has 3 semi-transparent colors on the border.
From the inside to the outside :
- HSB 0;0;7% Op 91% (Black) 1px width
- HSB 0;0;53% Op 38% (Grey) 2px width
- HSB 0;0;0 Op 41% (Black) 1px width
How could I draw these borders to my NSBezierPath
?
PS: Using a pattern ([NSColor colorWithPatternImage:]
) does not work.