Added `-[NSArray validateAsPropertyList]` and `-[NSDictionary validateAsPropertyList...
[adiumx.git] / Source / AINoisyTableColumn.m
blob54c6d553b377746600abfccba7811244f593c9fc
1 //
2 //  AINoisyTableColumn.m
3 //  Adium
4 //
5 //  Created by Evan Schoenberg on 7/6/06.
6 //
8 #import "AINoisyTableColumn.h"
10 /*!
11  * @class AINoisyTableColumn
12  * @brief A table column which posts NSTableViewColumnDidResizeNotification continuously as it resizes rather than when it finishes resizing
13  */
14 @implementation AINoisyTableColumn
16 - (void)setWidth:(float)newWidth
17 {       
18         float width = [self width]; 
20         [super setWidth:newWidth];
21         
22         if (width != newWidth) {
23                 [[NSNotificationCenter defaultCenter] postNotificationName:NSTableViewColumnDidResizeNotification
24                                                                                                                         object:[self tableView]
25                                                                                                                   userInfo:[NSDictionary dictionaryWithObjectsAndKeys:
26                                                                                                                           self, @"NSTableColumn",
27                                                                                                                           [NSNumber numberWithFloat:width], @"NSOldWidth",
28                                                                                                                           nil]];
29         }
32 @end