Hello,

I think subclassing is the only clean way to go: Override the drawRect
method and draw your gradient (NSGradient for Mac OS X 10.5).

Otherwise, you could take a look at:
http://mattgemmell.com/2005/11/02/roundedbox-nsbox-subclass

Regards, Laurent Etiemble.

2009/1/29 Mario De Clippeleir <mari...@sydec.be>:
> Hi,
>
> Another question : how can you draw a gradient in a NSBox ?
>
> Br,
>
> Mario
>
>

Reply via email to