Author: mlytwyn Date: Mon Feb 27 23:58:56 2017 New Revision: 40354 URL: http://svn.gna.org/viewcvs/gnustep?rev=40354&view=rev Log: XIB do not contain the autoresizing key for no resizing column
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableColumn.m Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableColumn.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableColumn.m?rev=40354&r1=40353&r2=40354&view=diff ============================================================================== --- libs/gui/branches/gnustep_testplant_branch/Source/NSTableColumn.m (original) +++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableColumn.m Mon Feb 27 23:58:56 2017 @@ -221,13 +221,13 @@ // Tiling also marks it as needing redisplay [_tableView tile]; - [[NSNotificationCenter defaultCenter] - postNotificationName: NSTableViewColumnDidResizeNotification - object: _tableView - userInfo: [NSDictionary dictionaryWithObjectsAndKeys: - self, @"NSTableColumn", - [NSNumber numberWithFloat: oldWidth], - @"NSOldWidth", nil]]; + NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys: + self, @"NSTableColumn", + [NSNumber numberWithFloat: oldWidth], @"NSOldWidth", + nil]; + [[NSNotificationCenter defaultCenter] postNotificationName: NSTableViewColumnDidResizeNotification + object: _tableView + userInfo: userInfo]; } } @@ -523,6 +523,9 @@ if (!self) return nil; + // Cocoa default - NO resizing unless XIB says so... + _resizing_mask = NSTableColumnNoResizing; + if ([aDecoder containsValueForKey: @"NSDataCell"]) { [self setDataCell: [aDecoder decodeObjectForKey: @"NSDataCell"]]; _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs