I have a NSBezierPath, in the shape of a menubar panel.
I'd like to make a header now. Like this one for example. But only like 30 pixels from the top.
I can't figure out how I should only get the top part of the NSBezierPath. This is my first question. How can I cut off a piece of the NSBezierPath, or how can I make a Union of the NSBezierPath.
Then I want to add a gradient like in the example. The gradient is clear, but how can I add the glow at the top of it? I have added a shadow in another app back then, but it seemed a little dirty.
So how can I make a shadow at the top of the NSBezierPath, like in the provided example.
Thanks!