IIRC from my debugging sessions sizeWithAttributes already does that?
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 1:47 AM, Aki Inoue wrote:
Try using -boundingRectWithSize:options:attributes instead with
NSStringDrawingUsesDeviceMetics.
Aki
On 2008/07/24, at 14:23, Jacob Ole Juul K
It's more than one pixel.
First time i noticed it was with a string of about 140 chars which gut
truncated about 10 chars.
Jacob Kolding
[EMAIL PROTECTED]
On Jul 25, 2008, at 11:19 AM, Manfred Schwind wrote:
he problem is that on very large strings sizeWithAttributes comes
up short [no pu
he problem is that on very large strings sizeWithAttributes comes up
short [no pun intended]
How much too short? Is it less than 1 pixel?
float tiw = [self stringPixelWidth:[records
objectAtIndex:i]];
if(tiw > maxWidth){
Try using -boundingRectWithSize:options:attributes instead with
NSStringDrawingUsesDeviceMetics.
Aki
On 2008/07/24, at 14:23, Jacob Ole Juul Kolding wrote:
Hello List
I'm working on an app where I have a NSTableView with one column
containing strings.
I want this column to automatically r
Hello List
I'm working on an app where I have a NSTableView with one column
containing strings.
I want this column to automatically resize itself within the
ScrollView to fit the width of the widest string.
In order to do this I came up with the following code:
-(void)calculateCellTextAttr