Thanks Mike,

I forgot to mention that I've already tried -[NSWindow
setFrame:display:animate:], but it does not seem to differ from the
other methods I mentioned.

Well, it's all quite smooth, but very noticeably less smooth than the
Core Animation-powered animations of the views inside the window.
Since I want some of the view animations and window animations happen
at the same time, this difference becomes very noticeable.

For example, consider such case: my window displays a vertical table
of items, and when a new item is added with an animation to the table,
the window should also grow vertically with animation to give room for
the new item. The view is added so smoothly and the window grows so
jaggedly...

Any other ideas?


On Fri, Jul 16, 2010 at 1:28 PM, Mike Abdullah
<cocoa...@mikeabdullah.net> wrote:
> Aside from Core Animation, you could also try -setFrame:display:animate:
>
> It blocks the main thread while running, but is generally pretty smooth.
>
> On 16 Jul 2010, at 10:55, Oleg Krupnov wrote:
>
>> Hi,
>>
>> I'm using quite a few animations in my app's UI, using the Core
>> Animation, and all of the animations work wonderfully smooth and
>> quick.
>>
>> However, when I need to animate the frame of the window (namely,
>> change its size), it feels so sluggish and jagged.
>>
>> I guess this is because, unlike the views inside the window, the
>> window itself is not using Core Animation under the hood, but some
>> "usual" Quartz drawing.
>>
>> So the question is, is there a way to make the NSWindow also use Core
>> Animation when animating the change of its size or position?
>>
>> So far I have tried NSViewAnimation, [NSWindow animator] proxy and
>> even explicitly added CAAnimations to the proxy, but it all seems to
>> result in the same sluggish animation.
>>
>> Thanks,
>>
>> Oleg.
>> _______________________________________________
>>
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net
>>
>> This email sent to cocoa...@mikeabdullah.net
>
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to