• 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
Deferring a selector until later, but before painting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deferring a selector until later, but before painting


  • Subject: Deferring a selector until later, but before painting
  • From: John Stiles <email@hidden>
  • Date: Wed, 05 Mar 2008 17:12:52 -0800

There are many times in my code where I want to defer a selector's execution until the next time the event loop runs, which is a perfect match for -performSelector:withObject:afterDelay:, passing a delay of 0.0. However, this executes after the app has repainted all the windows. Is there a way to get a selector called later, but before windows paint?

Right now in my app, there are some controls which appear and then their state changes a fraction of a second later, and I'd like to avoid the visually jarring "pop" effect of a control which changes itself right after first appearing, but I can't find an easy way to avoid deferring some operations.

_______________________________________________

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: Deferring a selector until later, but before painting
      • From: Chris Suter <email@hidden>
    • Re: Deferring a selector until later, but before painting
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Core Data, SQLite, and Housekeeping
  • Next by Date: Re: NSTextField keyboard event
  • Previous by thread: RE: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • Next by thread: Re: Deferring a selector until later, but before painting
  • Index(es):
    • Date
    • Thread