Animate NSWindow frame using Core Animation?

2010-07-16 Thread Oleg Krupnov
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

Re: Animate NSWindow frame using Core Animation?

2010-07-16 Thread Mike Abdullah
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

Re: Animate NSWindow frame using Core Animation?

2010-07-16 Thread Oleg Krupnov
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

Re: Animate NSWindow frame using Core Animation?

2010-07-16 Thread vincent habchi
Le 16 juil. 2010 à 12:38, Oleg Krupnov a écrit : Any other ideas? Is your view CALayer backed? Vincent___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Animate NSWindow frame using Core Animation?

2010-07-16 Thread Oleg Krupnov
My table view is layer-hosting. The contentView of my window is layer-backed. I even tried to setWantsLayer:YES for the superview of the contentView, that is, the theme frame view of the window, but it does not seem to bring Core Animation into the window frame animation. On Fri, Jul 16, 2010

Re: Animate NSWindow frame using Core Animation?

2010-07-16 Thread Mike Abdullah
Window resize can only be as fast as the views redrawing inside it. Have you tried profiling during a resize to see if any of your views are taking too long to redraw? (or perhaps redrawing unnecessarily). Instruments and Quartz Debug are your friends here. On 16 Jul 2010, at 11:38, Oleg