Animating window content border
Animating window content border
- Subject: Animating window content border
- From: Quincey Morris <email@hidden>
- Date: Sun, 13 Mar 2011 15:00:09 -0700
I don't seem to be able to find a way of animating a window's bottom edge content border size ('contentBorderThicknessForEdge:') when resizing a window.
Specifically, I have a window with a normal bottom border of (say) 20 points. I want to increase the window height by (say) 30 points, and at the same time increase the bottom border by the same amount. The catch is that I would like both these changes to animate smoothly.
I thought -[NSWindow setFrame:display:YES animate:YES] would allow me to change the bottom border in delegate method 'window:willResize:toSize:', but that doesn't get called during the animation. I don't think I can use [window animator] to do it, because it's not a KVC compliant property I'm changing.
Am I missing an obvious way of getting the border animation effect?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden