Re: Animated split view collapsing
Re: Animated split view collapsing
- Subject: Re: Animated split view collapsing
- From: Paul Kim <email@hidden>
- Date: Thu, 4 May 2006 23:30:30 -0400
On May 4, 2006, at 11:40 AM, Lawrence Sanbourne wrote:
Thank you so much! That was tremendously helpful. I cleaned up my code
based on yours, and the animation is working. It's fairly jerky, but I
think I might have to be satisfied now. My code is below, if anyone
wants to use it or try to explain the jerkiness.
My guess is the jerkiness is because you are calling setNeedsDisplay
instead of display. In the comment in your code, you mention that
calling display causes an infinite loop. I don't have that problem
with mine so I suspect that maybe one of your draw methods
(drawDividerInRect?) might be altering the splitview in some way? If
that is the case, I'd restructure your code as it's a bad idea to
have drawing code change any state in the object. Maybe if you could
provide a stack of the loop, we could better ascertain what is
happening.
paul
_______________________________________________
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