On 29/05/2010, at 3:20 PM, Shane wrote:
[path lineToPoint:NSMakePoint(cellFrame.size.width,
cellFrame.size.height)];
Should be:
[path lineToPoint:NSMakePoint( cellFrame.origin.x + cellFrame.size.width,
cellFrame.size.height )];
Or more succinctly:
[path lineToPoint:NSMakePoint(
[path moveToPoint:NSMakePoint(cellFrame.origin.x, cellFrame.size.height)];
[path lineToPoint:NSMakePoint(cellFrame.size.width, cellFrame.size.height)];
If cellFrame = {500, 300, 120, 20}
You're drawing from {500, 20} to {120, 20}
I have four NSView cell's (so I have four data table header
Well I don't know what you're seeing exactly, but the cells in a table view
are spaced out.
- (void)setIntercellSpacing:(NSSize)aSize
The default intercell spacing is (3.0, 2.0).
I've attached a small screenshot of what I'm seeing.
attachment:
On May 17, 2010, at 5:48 PM, Shane wrote:
[path moveToPoint:NSMakePoint(cellFrame.origin.x, cellFrame.size.height)];
[path lineToPoint:NSMakePoint(cellFrame.size.width, cellFrame.size.height)];
If cellFrame = {500, 300, 120, 20}
You're drawing from {500, 20} to {120, 20}
--
Seth Willits
On May 15, 2010, at 7:17 PM, Shane wrote:
This is a data table header cell of type NSPopUpButtonCell where I'm
trying to draw the bottom border of the cell.
The problem is that the border along the bottom of each
NSPopUpButtonCell only extends across part of the cell, not the entire
length
This is a data table header cell of type NSPopUpButtonCell where I'm
trying to draw the bottom border of the cell.
The problem is that the border along the bottom of each
NSPopUpButtonCell only extends across part of the cell, not the entire
length of the cell.
The docs say about the cellFrame