• 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: problem with date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with date


  • Subject: Re: problem with date
  • From: H M <email@hidden>
  • Date: Sat, 15 Sep 2007 23:58:10 +0100


On 15. Sep 2007, at 23:45, Paul Bruneau wrote:

On Sep 15, 2007, at 4:50 PM, H M wrote:

but i've noticed something strange: when I move the sliders, the numbers in those text fields get blurred, kinda like when you write a number down and then write another number in the same place without erasing the old number first. this only happens when I move a slider, but not when I change the size of the window or when the timer calls that method...

I believe it is due to the resource-saving moving of the pixels in your view that is by default used by the OS to minimize the amount of re-drawing that must be done.


You can force the OS to redraw your view each time it scrolls which should solve your issue by using the setCopiesOnScroll: method of the NSClipView that contains your NSScrollView. I'm a newbie myself and I just discovered this last week, so if I'm wrong, someone please slap me.

the time is not (supposed to) be shown in my custom view. I have 2 text fields above that view for the time (one for the system's time zone, the other for GMT) and they are the ones that get blurred. but it just occurred to me that i could remove the call to the doTime method from the drawRect method in which case the doTime method would only be called by the timer which would be sufficient.
hmm... when I move a slider, the doTime method gets called several times a second. is it possible that something stumbles over its own feet trying to keep up with all the calls, thereby causing the blurring?


--
GPG Key ID: 92AD877F7E4E32B9
Fingerprint: 16B0 7DCD 3AB0 0C45 F5FD  581D 92AD 877F 7E4E 32B9


_______________________________________________

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: problem with date
      • From: H M <email@hidden>
References: 
 >problem with date (From: H M <email@hidden>)
 >Re: problem with date (From: "Shawn Erickson" <email@hidden>)
 >Re: problem with date (From: H M <email@hidden>)
 >Re: problem with date (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: problem with date
  • Next by Date: Re: Creating Plists / How is the <data> value generated?
  • Previous by thread: Re: problem with date
  • Next by thread: Re: problem with date
  • Index(es):
    • Date
    • Thread