Re: Animating NSSplitPane position

2011-06-15 Thread Graham Cox
Hi Antonio, wow - that's a substantial response! Thanks! I did find a simple way to do it which suits my needs, though it's not perfect. I added a category on NSSplitView (not pane - my bad) as follows: @implementation NSSplitView (Animation) + (id) defaultAnimationForKey:(NSString *)key {

Re: Animating NSSplitPane position

2011-06-15 Thread Antonio Nunes
On 16 Jun 2011, at 03:48, Graham Cox wrote: > I'm using -setPosition:ofDividerAtIndex: and I call this using the view's > animator: > > [[mySplitPane animator] setPosition:position ofDividerAtIndex:0]; > > But it doesn't animate and just jumps into position. I see other apps manage > thi

Re: Animating NSSplitPane position

2011-06-15 Thread Dave DeLong
I have no special insights into this other than that the BWSplitView (part of BWToolkit) also does animated resizing, so it may be worth a poke around in the BWToolkit source: https://bitbucket.org/bwalkin/bwtoolkit HTH, Dave On Jun 15, 2011, at 7:48 PM, Graham Cox wrote: > Does anyone know