• 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: How to make NSWindow redraw vacated rects "ifNeeded"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make NSWindow redraw vacated rects "ifNeeded"?


  • Subject: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Sun, 8 Apr 2007 15:46:35 -0700


On Apr 8, 2007, at 15:37, Jerry Krinock wrote:

On 2007 Apr, 08, at 13:23, Andrew Farmer wrote:


As a general point, BTW, you should never need to call setNeedsDisplay, display, or displayIfNeeded on view objects. (Only exception is a view calling setNeedsDisplay on itself.) The view should otherwise be able to do redraw management for itself.

Yes, I agree with that. When I first wrote the code, I only sent - displayIfNeeded to the window, not the views. But the setNeedsDisplay messages in fact do neither harm nor good. - [NSWindow display], or the extra -orderFront, are the only things that seem to do any good.

Did you try [[window contentView] setNeedsDisplay:YES]? You need to tell the box's superview to redisplay, or else the displayIfNeeded won't have any dirty rects to redraw (as far as I understand).


-- adam
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: How to make NSWindow redraw vacated rects "ifNeeded"?
      • From: Jerry Krinock <email@hidden>
References: 
 >How to make NSWindow redraw vacated rects "ifNeeded"? (From: Jerry Krinock <email@hidden>)
 >Re: How to make NSWindow redraw vacated rects "ifNeeded"? (From: Andrew Farmer <email@hidden>)
 >Re: How to make NSWindow redraw vacated rects "ifNeeded"? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Next by Date: Re: Points
  • Previous by thread: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Next by thread: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Index(es):
    • Date
    • Thread