• 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
-setNeedsDisplay: different between Tiger and Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-setNeedsDisplay: different between Tiger and Leopard


  • Subject: -setNeedsDisplay: different between Tiger and Leopard
  • From: John Stiles <email@hidden>
  • Date: Fri, 14 Dec 2007 10:13:15 -0800

I am writing code that moves a control from one place to another. In Leopard, this works great:

[control setNeedsDisplay:YES]; // clean up at old location
[control setFrame:newFrame]; // move control
[control setNeedsDisplay:YES]; // redraw at new location

However, in Tiger, this doesn't work properly; the control is not erased from its old location. It behaves as if the first -setNeedsDisplay: was not called at all. (And in fact, on Leopard, if you remove the first -setNeedsDisplay:, you get the same artifacts.)

What's the simplest way to fix this on all OSes?

_______________________________________________

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: -setNeedsDisplay: different between Tiger and Leopard
      • From: glenn andreas <email@hidden>
    • Re: -setNeedsDisplay: different between Tiger and Leopard
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: printf
  • Next by Date: Re: -setNeedsDisplay: different between Tiger and Leopard
  • Previous by thread: Re: Adding a zip file to the resources doesn't add it in the built application's resource path
  • Next by thread: Re: -setNeedsDisplay: different between Tiger and Leopard
  • Index(es):
    • Date
    • Thread