I have a NSScrollView and a NSTableView with some NSTableColumn in it. When I push a button,I change the NSScrollView'width with Animation. Here is my code:
NSDictionary *myScrollViewDictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
myScrollView,NSViewAnimationTargetKey,
[NSValue valueWithRect:myScrollViewStartFrame],NSViewAnimationStartFrameKey,
[NSValue valueWithRect:myScrollViewEndFrame],NSViewAnimationEndFrameKey, nil];
NSViewAnimation *animation = [[NSViewAnimation alloc] initWithViewAnimations:@[myScrollViewDictionary]];
animation.delegate = self;
animation.duration = 0.2;
[animation setAnimationBlockingMode:NSAnimationBlocking];
[animation startAnimation];
This works fine.
But I want to change each Column'width in the meanwhile with the same Animation,the problem is NSTableColumn is not a NSView, so I can not change its frame.Now I only can change Column'width without any Animation.
somebody have ideas?