• 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: Animated split view collapsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animated split view collapsing


  • Subject: Re: Animated split view collapsing
  • From: "Lawrence Sanbourne" <email@hidden>
  • Date: Fri, 28 Apr 2006 15:24:53 -0500

On 4/28/06, Matt Neuburg <email@hidden> wrote:
On or about 4/28/06 1:17 PM, thus spake "Lawrence Sanbourne"
<email@hidden>:

> On 4/28/06, Matt Neuburg <email@hidden> wrote:
>> On Fri, 28 Apr 2006 02:05:21 -0500, "Lawrence Sanbourne"
>> <email@hidden> said:
>>> Interesting. I did notice some strange results with different curves,
>>> but only when the "direction" of the animation didn't correspond with
>>> the right curve. However, I tried not specifying an animation curve,
>>> and I have the same display bug.
>>
>>>> Here's the current version of my animated split view hiding code. It's
>>>> working beautifully for collapsing the view. However, it displays the
>>>> window background and jumps to the endFrame position when
>>>> un-collapsing
>>
>> As I said before, I found it necessary to sprinkle my routines with
>> "display" calls. setNeedsDisplay was not enough. (Maybe this is some kind of
>> interaction with the new screen buffering.) m.
>
> I can't call this during the animation because I'm using
> NSViewAnimation. However, before I write all the code to switch to a
> custom NSAnimation subclass, I thought I'd try calling -display
> instead of -setNeedsDisplay: at the end of my method (after the
> animation is done). This change the end result at all, so I think
> adding -display calls isn't the answer. Did I reason that correctly?

I don't know. I'm using NSViewAnimation and I had to call display before the
start of the animation. All I'm saying is that it might pay to experiment.
As I said before, I found NSViewAnimation very risky and crash-prone, and it
took me a long time to find a way to make it work. m.

Oh, I see. OK, so I sprinkled -display calls ([self display] and [subview display] -- display the split view and the subview being resized) all over the place, and unfortunately it had no effect. Is there any chance you could post your split view animation code (even just part of it)?

Thanks for the tips!

Larry
_______________________________________________
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


  • Follow-Ups:
    • Re: Animated split view collapsing
      • From: Paul Kim <email@hidden>
References: 
 >Re: Animated split view collapsing (From: "Lawrence Sanbourne" <email@hidden>)
 >Re: Animated split view collapsing (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Re: comboboxcell datasource problem
  • Previous by thread: Re: Animated split view collapsing
  • Next by thread: Re: Animated split view collapsing
  • Index(es):
    • Date
    • Thread