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

Re: Deferring a selector until later, but before painting


  • Subject: Re: Deferring a selector until later, but before painting
  • From: Ken Ferry <email@hidden>
  • Date: Wed, 5 Mar 2008 23:32:01 -0800

On Mar 5, 2008, at 5:41 PM, j o a r <email@hidden> wrote:


On Mar 6, 2008, at 2:12 AM, John Stiles wrote:

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.


How about delaying adding the control until the value you want to display in the control is "ready"?

Or can you do your final setup in -viewWillDraw?

For some kinds of problems, you could synchronously mark whatever state you're interested as invalid, then resolve any invalidated state in -viewWillDraw. This would be an appropriate way to do deferred layout, for example.

-Ken
_______________________________________________

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: j o a r <email@hidden>
References: 
 >Deferring a selector until later, but before painting (From: John Stiles <email@hidden>)
 >Re: Deferring a selector until later, but before painting (From: j o a r <email@hidden>)

  • Prev by Date: Re: Need help with NSToolbarItem subclass and custom view
  • Next by Date: CoreData fed ImageView blank on first run.
  • Previous by thread: Re: Deferring a selector until later, but before painting
  • Next by thread: Re: Deferring a selector until later, but before painting
  • Index(es):
    • Date
    • Thread