Toolbars, TableViews and Animation
Toolbars, TableViews and Animation
- Subject: Toolbars, TableViews and Animation
- From: "Doug Penny" <email@hidden>
- Date: Tue, 30 Oct 2007 09:17:24 -0400
Hi all,
I am running across a strange drawing bug when using animation to
change a views frame size and swap in a new subview. An example I
have come across is when working with the BasicCocoaAnimations example
project. You can find this project by doing a search in the developer
documentation. I added a tableview to the medium view in the
MainWindow.nib file. The tableview I added stretches almost from the
top to the bottom of the view. The problem comes when you run the app
and move from the small view to the medium view. The code figures out
the new size for the window and calls
[[[self window] animator] setFrame:newFrame display:YES];
[[[[self window] contentView] animator] replaceSubview:previousView with:view];
to smoothly change the window size and fade out the old view and fade
in the new view. However when the window starts resizing the window,
the tableview seems to have problems redrawing correctly as it is
fading/sliding into place. It almost looks like part of the toolbar
is sticking to the tableview. Has anyone else come across an issue
like this or am I simply doing something wrong here? I would be happy
to send the modified project to anyone who would like to take a look.
Thanks for the help.
Sincerely,
Doug Penny
_______________________________________________
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