NSSplitView splitViewDidResizeSubviews
NSSplitView splitViewDidResizeSubviews
- Subject: NSSplitView splitViewDidResizeSubviews
- From: Stuart Malin <email@hidden>
- Date: Fri, 27 Feb 2009 18:17:55 -1000
I have a Split View in my U/I. I want to update some controls *after*
the user has repositioned the split view's divider. So, I implemented
- (void)splitViewDidResizeSubviews:(NSNotification *)aNotification
thinking it would be invoked after the user was done resizing (i.e.,
after the mouse up event). However, I receive this notification
repeatedly while moving the divider. The same is true for:
- (void)splitViewWillResizeSubviews:(NSNotification *)aNotification
which also receives repeated notifications while the divider is moved.
Is this expected/normal behavior for Will and Did notifications?
(i.e. to be notified while the doing is happening and either at the
outset and the conclusion )?
If so, what then is the functional difference between Will... and
Did... ?
Also, if I want to know when the user has completed the divider
movement, how would I find that out? I suspect I'd need to subclass
NSSplitView method that handles the mouse events...
_______________________________________________
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