• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSplitView splitViewDidResizeSubviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSplitView splitViewDidResizeSubviews


  • Subject: Re: NSSplitView splitViewDidResizeSubviews
  • From: Andrew Yeaton <email@hidden>
  • Date: Fri, 27 Feb 2009 23:33:28 -0500

This is normal behaviour. Generally you want to handle "live resizing", and these notifications allow for that. "splitViewWillResizeSubviews" happens before the actual resize happens and "splitViewDidResizeSubviews" happens after.

I'll defer to someone else to answer your other question.

On Feb 27, 2009, at 11:17 PM, Stuart Malin wrote:

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

_______________________________________________

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


References: 
 >NSSplitView splitViewDidResizeSubviews (From: Stuart Malin <email@hidden>)

  • Prev by Date: Live resizing NSTableView causes ghosting/nastiness in custom drawn NSTextFieldCell
  • Next by Date: Re: Finding the path of selected item in NSOutlineView
  • Previous by thread: NSSplitView splitViewDidResizeSubviews
  • Next by thread: Finding the path of selected item in NSOutlineView
  • Index(es):
    • Date
    • Thread