NSTextFieldCell multi-line
NSTextFieldCell multi-line
- Subject: NSTextFieldCell multi-line
- From: Micha Fuhrmann <email@hidden>
- Date: Mon, 08 Nov 2010 16:55:13 +0800
Dear All,
I'm stuck here and it seems so trivial...
I'm using NSTextFieldCell in a tableview and when the text takes the whole cell, the cell size doesn't resize and add a line (which I would expect!!!). Setting the text properties in NSCell doesn't cut it either. So I've tried using
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row {
But how can I compute the amount screen pixels my NSString that's going into the cell will take to return a height with the proper number of lines? I must be missing something, it's just too silly.
Any help appreciated.
Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden