> Yes, just add a fudge factor to ensure the column will be wide
> enough to accommodate the string width AND the spacing between the
> left and right edges of the actual NSTextField in the cell. You can
> inspect the field in the table to see those distances.

Ok, but how can I get those distances? I've tried the following:

    NSView *view = [tableView viewAtColumn:0 row:idx makeIfNecessary:YES];
    NSRect bounds = [view bounds];

But bounds.origin.x and bounds.size.width are always 0...

-- 
Best regards,
 Andreas Falkenhahn                            mailto:[email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to