• 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 prevent redrawing window when resized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to prevent redrawing window when resized


  • Subject: Re: How to prevent redrawing window when resized
  • From: Vojtěch Meluzín <email@hidden>
  • Date: Wed, 02 Nov 2011 21:39:16 +0100

> What you’re seeing is definitely not normal behavior. Either it’s an
> artifact of the unusual way your app is structured (is this happening
> within that modal panel?), or you’re doing something unusual when drawing
> your view. How are you doing the drawing? You should just need to override
> -drawRect: and do your drawing in that. Are you making drawing calls
> elsewhere, or calling window or view methods to force immediate display?
>
> —Jens
>

It's happening with the modal window. It contains a single view, which is
very simple, just overrides stuff for mouse/keyboard input and drawRect for
painting. It is then used to get CGContextRef for drawing. I tried to
remove all NSView setNeedsDisplayInRect used to "invalidate" and NSView
displayIfNeeded for "immediate updating", but it didn't help, it still does
the same thing.

Vojtech
_______________________________________________

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: How to prevent redrawing window when resized
      • From: Jens Alfke <email@hidden>
References: 
 >How to prevent redrawing window when resized (From: Vojtěch Meluzín <email@hidden>)
 >Re: How to prevent redrawing window when resized (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: How do we get rid of "application downloaded from the internet" warnings?
  • Next by Date: Re: minor ARC casting question
  • Previous by thread: Re: How to prevent redrawing window when resized
  • Next by thread: Re: How to prevent redrawing window when resized
  • Index(es):
    • Date
    • Thread