• 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 Optimize drawRect: for obscured views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Optimize drawRect: for obscured views?


  • Subject: Re: How to Optimize drawRect: for obscured views?
  • From: RenĂ© van Amerongen <email@hidden>
  • Date: Sun, 12 Nov 2006 22:56:20 +0100




On 11/11/06, Andrew Farmer <email@hidden> wrote:
On 11 Nov 06, at 16:46, E. Wing wrote:
> I have a custom view which may have animation. I use an NSTimer to
> fire periodically and I check to see if anything is animating in my
> view. If so, I call setNeedsDisplay:YES.
>
> If I minimize or hide the application, I notice that drawRect: stops
> being called by the system (which I consider good). But if my
> view/window is completely obscured by another window (say another
> window from my app or from another application such as Safari) , I
> noticed that drawRect: is still being called.


Yes. That's intentional; while your view may not be exposed at that
given moment,

Sometimes your view could be behind a transparant window.

_______________________________________________
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


References: 
 >How to Optimize drawRect: for obscured views? (From: "E. Wing" <email@hidden>)
 >Re: How to Optimize drawRect: for obscured views? (From: Andrew Farmer <email@hidden>)
 >Re: How to Optimize drawRect: for obscured views? (From: "E. Wing" <email@hidden>)
 >Re: How to Optimize drawRect: for obscured views? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Strange crash with multithreading and -[NSUserDefaults synchronize]
  • Next by Date: Re: How to launch an IBAction
  • Previous by thread: Re: How to Optimize drawRect: for obscured views?
  • Next by thread: Re: How to Optimize drawRect: for obscured views?
  • Index(es):
    • Date
    • Thread