• 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
drawRect & needsDisplay & co
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

drawRect & needsDisplay & co


  • Subject: drawRect & needsDisplay & co
  • From: Cristi Savu <email@hidden>
  • Date: Fri, 6 Dec 2002 10:08:10 +0200

Hello list,

I encountered a weird NSView behavior and maybe someone could help me with this :

my view (descendant of NSQuickDrawView) needs to be repainted as a result of a user action (button click).
for this : i am sending an setNeedsDisplay:YES and setNeedsDisplayInRect:rect and (normally) drawRect is called.
The problem is that, from time to time, "someone else" is "calling" my drawRect and my view is repainted as if an setNeedsDisplayInRect (with always the same rect) was sent but I certainly didn't.

How can an area can be marked as needed to be displayed withought an explicit call and withought being overlapped by another window or panel ?

I tried to overwrite needsDisplay, but drawRect is called even if needsDisplay returns NO. How can this be possible ?

Can anybody advice ? Any hint or pointer ?

Best wishes, Cristian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: drawRect & needsDisplay & co
      • From: Cristi Savu <email@hidden>
  • Prev by Date: Re: NSData to plist
  • Next by Date: Re: NSData to plist
  • Previous by thread: Table View Menu Validation!?!?
  • Next by thread: Re: drawRect & needsDisplay & co
  • Index(es):
    • Date
    • Thread