• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Table column resizing overlaps the text with other column contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Table column resizing overlaps the text with other column contents (From: Arun <email@hidden>)

  • Prev by Date: Table column resizing overlaps the text with other column contents
  • Next by Date: Re: Message from view to viewController
  • Previous by thread: Table column resizing overlaps the text with other column contents
  • Next by thread: Help needed with setting autoresizing masks
  • Index(es):
    • Date
    • Thread