- NSMatrix *volMatrix = [[[NSMatrix alloc] initWithFrame:dataRect
- mode:NSHighlightModeMatrix
- cellClass:NSClassFromString(@"ITTextFieldCell")
- numberOfRows:1
- numberOfColumns:count] autorelease];
-
+ NSMatrix *volMatrix;
+
+ if ( _sizing == StatusWindowSmall ) {
+ divisor = SMALL_DIVISOR;
+ } else if ( _sizing == StatusWindowMini ) {
+ divisor = MINI_DIVISOR;
+ }
+
+ font = [NSFont fontWithName:@"Lucida Grande Bold" size:( size / divisor )];
+ attr = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
+ charSize = [character sizeWithAttributes:attr];
+ cellHeight = ( charSize.height + 4.0 ); // Add 4.0 for shadow
+ cellWidth = ( (charSize.width) + (SW_METER_PAD / divisor) );
+ dataWidth = ( cellWidth * count );
+ dataRect = [self setupWindowWithDataSize:NSMakeSize(dataWidth, cellHeight)];
+ volMatrix = [[[NSMatrix alloc] initWithFrame:dataRect
+ mode:NSHighlightModeMatrix
+ cellClass:NSClassFromString(@"ITTextFieldCell")
+ numberOfRows:1
+ numberOfColumns:count] autorelease];
+