• 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: Matt Neuburg <email@hidden>
  • Date: Fri, 28 Apr 2006 13:20:28 -0700
  • Thread-topic: Animated split view collapsing

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.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/



 _______________________________________________
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: "Lawrence Sanbourne" <email@hidden>
References: 
 >Re: Animated split view collapsing (From: "Lawrence Sanbourne" <email@hidden>)

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