URL:
<http://savannah.gnu.org/bugs/?27927>
Summary: NSColor setFill not well supported and setStroke
broken
Project: GNUstep
Submitted by: qmathe
Submitted on: Tue 03 Nov 2009 05:23:40 PM GMT
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Ubuntu 9.04 and Gui + Cairo backend (svn trunk r28906). iirc the same
problems also hold for the art backend.
Here are some -setFill and -setStroke use cases that works well on Cocoa but
not on GNUstep.
The code below works but logs the following error:
DPSundefined: No fill colorspace defined, assume DeviceRGB
[[NSColor redColor] setFill];
[NSBezierPath fillRect: aRect];
And the following code logs the same error but doesn't work, the alpha
component is just ignored:
[[[NSColor redColor] colorWithAlphaComponent: 0.5] setFill];
[NSBezierPath fillRect: aRect];
-setStroke doesn't work at all and logs a similar error than -setFill
(DPSundefined: No stroke colorspace defined, assume DeviceRGB). For example
the code below just draws a red border and not a green one:
[NSBezierPath setDefaultLineWidth: 5.0];
[[NSColor redColor] setFill]; // You can replace -setFill by -set here, the
result is the same
[[NSColor greenColor] setStroke];
[NSBezierPath strokeRect: aRect];
Quentin.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27927>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep