Post info about old width when posting notification about column resized

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-09-07 20:39:37 +00:00
parent abab28e393
commit d9b7ed8e0b

View file

@ -115,6 +115,8 @@
*/
- (void)setWidth: (float)newWidth
{
float oldWidth = _width;
if (newWidth > _max_width)
newWidth = _max_width;
else if (newWidth < _min_width)
@ -132,7 +134,10 @@
[[NSNotificationCenter defaultCenter]
postNotificationName: NSTableViewColumnDidResizeNotification
object: _tableView];
object: _tableView
userInfo: [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithFloat: oldWidth],
@"NSOldWidth", nil]];
}
}