• 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
Live resizing NSTableView causes ghosting/nastiness in custom drawn NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Live resizing NSTableView causes ghosting/nastiness in custom drawn NSTextFieldCell


  • Subject: Live resizing NSTableView causes ghosting/nastiness in custom drawn NSTextFieldCell
  • From: Andrew Yeaton <email@hidden>
  • Date: Fri, 27 Feb 2009 19:02:23 -0500

I have a custom subclass of an NSTextFieldCell that draws a right- aligned "badge" (like Mail.app's unread count). The column that uses the custom cell autoresizes with the width of the NSTableView (which resizes with the window).

The problem:

When the width of the column expands quickly, the cell width doesn't resize smoothly and seems to have ghosting.

My drawing code seems to be working, but appears to be drawing "under" a cached version from the original width. It's as if, my draw is happening correctly, but a cached image is being placed over top anyway.

Is there a way to make the column resize smoothly and draw correctly?
_______________________________________________

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


  • Prev by Date: Re: Name to PSN
  • Next by Date: Re: NSSplitView splitViewDidResizeSubviews
  • Previous by thread: Re: Finding the path of selected item in NSOutlineView
  • Next by thread: Patched OpenSSL
  • Index(es):
    • Date
    • Thread