# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1326122284 0 # Node ID 7bc189ef0cd070acba39beec124cf51293fda7a2 # Parent 6c55d68fd08a0372dd4d56ff4af72cb764ce3f38 Add code to determine the size of the calendar control on Mac. diff -r 6c55d68fd08a -r 7bc189ef0cd0 mac/dw.m --- a/mac/dw.m Sat Jan 07 22:59:39 2012 +0000 +++ b/mac/dw.m Mon Jan 09 15:18:04 2012 +0000 @@ -3513,6 +3513,20 @@ thisheight = (int)size.height; } } + /* Handle calendar */ + else if([ object isMemberOfClass:[DWCalendar class] ]) + { + NSCell *cell = [object cell]; + + if(cell) + { + NSSize size = [cell cellSize]; + + thiswidth = size.width; + thisheight = size.height; + } + } + /* Any other control type */ else if([ object isKindOfClass:[ NSControl class ] ]) nsstr = [object stringValue];