• 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: Customised NSCell leaves dirty traces while scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customised NSCell leaves dirty traces while scrolling


  • Subject: Re: Customised NSCell leaves dirty traces while scrolling
  • From: Josh Yu <email@hidden>
  • Date: Wed, 24 Nov 2010 20:08:09 +1100

>> Try overriding NSCell - drawWithFrame:inView:
>> IIRC this is called before - drawInteriorWithFrame:InView:

>> The default implementation of - drawWithFrame:inView: is perhaps the source of your unwanted drawing.

>> Regards

>> Jonathan Mitchell

>Thanks Jonathan for your reply. I've tried replacing
>drawInteriorWithFrame with drawWithFrame and no luck :(

>I however looked into my overriding on heightOfRow, which hands back a
>calculated row height according to the variable heights of elements
>placed inside. Forcing heightOfRow producing a fixed height for each
>row seemed to have fixed the problem which is suggesting that there
>might be flaws in my text rect calculating codes.

>kjoika


Problem solved.

NEVER return float to heightOfRow - this will mess the whole table up.
Not sure if it's a cocoa bug - but return integer at all times.
_______________________________________________

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

  • Follow-Ups:
    • Re: Customised NSCell leaves dirty traces while scrolling
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: "Tap to focus" on iOS 4
  • Next by Date: Scroll/Position Image in Scrollview that is smaller than the Scrollview
  • Previous by thread: Re: Re: Customised NSCell leaves dirty traces while scrolling
  • Next by thread: Re: Customised NSCell leaves dirty traces while scrolling
  • Index(es):
    • Date
    • Thread