Re: Table column resizing overlaps the text with other column contents
Re: Table column resizing overlaps the text with other column contents
- Subject: Re: Table column resizing overlaps the text with other column contents
- From: Corbin Dunn <email@hidden>
- Date: Fri, 29 May 2009 10:19:29 -0700
On May 29, 2009, at 10:00 AM, Arun wrote:
Hi All,
I have a application in which i display application names along with
an
image in a table column. Also i display their versions in another
column.
I have used custom ImageAndText cell for the first column and
NSTextFieldCell fro the second column.
If i resize the second column, then the contents automatically gets
truncated with (...) appearing in the end. But if i re-size the first
column, the contents of the first column overlaps with the second.
How to
truncate the contents of the ImageAndTextCell?
Your cell is drawing outside its frame that it was given in drawRect:.
A proper implementation is shown in the PhotoSearch example.
http://developer.apple.com/samplecode/PhotoSearch/
And, we will discuss stuff like this at WWDC ( http://developer.apple.com/wwdc/sessions/#session=110
).
corbin
_______________________________________________
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