NSBezierPath fill pattern?

2008-07-14 Thread David Harper
Hello, I'm hoping to find a way to fill an NSBezierPath with a bitmap pattern of arbitrary size - probably something like 32x32. It will be a 2-color on-off (foreground-background) pattern where each color can be defined by the user. Looking through the NSBezierPath class documentation,

Re: NSBezierPath fill pattern?

2008-07-14 Thread Matt Gough
Sounds like you want to use [NSColor colorWithPatternImage] and use that as the fill color. Matt On 14 Jul 2008, at 4:48pm, David Harper wrote: Hello, I'm hoping to find a way to fill an NSBezierPath with a bitmap pattern of arbitrary size - probably something like 32x32. It will be a