[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Color issue
From: |
Fred Kiefer |
Subject: |
Re: Color issue |
Date: |
Wed, 25 Apr 2007 13:27:20 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20060911) |
Andreas Höschler wrote:
> [[NSColor lightGrayColor] set];
> NSFrameRect(rect);
>
> NSBezierPath *path = [NSBezierPath bezierPath];
> ....
> [path stroke];
>
> draws a gray rect and a gray line (as it should) on MacOSX. However, on
> GNUstep the rect is gray but NSBezierPath does not seem to honor
> -[NSColor set]. The path is drawn in black!?
>
> What am I missing?
>
Not sure what you are missing, but even without testing the GNUstep code
I am sure it is working. So the problem must be in your code. From the
sniplet you send us it looks like you never put any coordinates into the
NSBezierPath. If this is true, nothing should be drawn at all and what
ever you see is caused by something else.
Either you send some more code, eg a working example, or you will have
to investigate your own code.
Cheers,
Fred
- Color issue, Andreas Höschler, 2007/04/24
- Re: Color issue,
Fred Kiefer <=