• 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
NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:


  • Subject: NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:
  • From: Michael Link <email@hidden>
  • Date: Thu, 4 May 2006 14:07:44 -0500

I've noticed that sometimes when I call setNeedsDisplayInRect:avoidAdditionalLayout: with the bounds of my custom NSTextAttachmentCell sometimes it doesn't receive a drawWithFrame:... call, although the NSTextView gets a drawRect: call. More specifically the background is redrawn (white) but the cell doesn't get it's drawWithFrame:... call to draw itself. If I change the setNeedsDisplayInRect:avoidAdditionalLayout: call to setNeedsDisplay: then everything works (but of course everything is redrawn unnecessarily). It appears that this drawing glitch happens to cells that are closer to the left margin, but never ones next to the right margin. Has anyone else encountered this before?

--
Michael

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: RE: Equivalent of isKindOfClass for Foundation Types?
  • Next by Date: Re: NSString intValue
  • Previous by thread: Job opportunity in South Florida
  • Next by thread: Whitespace
  • Index(es):
    • Date
    • Thread