Re: Drawing NSTextFieldCell subclass in table view

2008-12-15 Thread Corbin Dunn
On Dec 13, 2008, at 4:03 PM, Iceberg-Dev wrote: NSTextFieldCell is flipped. This has an impact on the y value. It might be the cause of the issue in your case. This is actually not quite right; the cell doesn't have a flipped property. The view does, and NSTableView isFlipped==YES. It wo

Re: Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Andre Masse
Although this was not the cause in this particular problem, it will help with another issue I have in an another class. Thanks for the info, Andre Masse On Dec 13, 2008, at 19:03, Iceberg-Dev wrote: NSTextFieldCell is flipped. This has an impact on the y value. It might be the cause of

Re: Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Andre Masse
Right on Patrick! Thanks a lot, Andre Masse On Dec 13, 2008, at 19:26, Patrick Mau wrote: Hi Andre It seems you are not using the cellFrame.origin.y when you create your new frame. CGFloat y = cellFrame.origin.y + cellFrame.size.height/2.0 - 10.0; NSRect frame = NSMakeRect

Re: Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Patrick Mau
On 13.12.2008, at 23:11, Andre Masse wrote: Hi, I want to display a cell like mail's message count in a table view but with a fixed size and centered on both axes. I've created a NSTextFieldCell subclass and its doing fine except that it draws in the first row only, which could mean I'm

Re: Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Iceberg-Dev
On Dec 13, 2008, at 11:11 PM, Andre Masse wrote: Hi, I want to display a cell like mail's message count in a table view but with a fixed size and centered on both axes. I've created a NSTextFieldCell subclass and its doing fine except that it draws in the first row only, which could mean

Drawing NSTextFieldCell subclass in table view

2008-12-13 Thread Andre Masse
Hi, I want to display a cell like mail's message count in a table view but with a fixed size and centered on both axes. I've created a NSTextFieldCell subclass and its doing fine except that it draws in the first row only, which could mean I'm drawing at the wrong coordinates. Obviously,