# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1304224824 0 # Node ID 7193401d139ab3e945b89e2cf1b56cc3d8688278 # Parent 73ff2daed8ca124f8e4d21070c4a9c38163cad22 Added support for dw_window_get_pos_size() to work on individual controls on Mac. diff -r 73ff2daed8ca -r 7193401d139a mac/dw.m --- a/mac/dw.m Sun May 01 03:31:40 2011 +0000 +++ b/mac/dw.m Sun May 01 04:40:24 2011 +0000 @@ -7586,6 +7586,20 @@ *height = rect.size.height; return; } + else if([ object isKindOfClass:[ NSControl class ] ]) + { + NSControl *control = handle; + NSRect rect = [control frame]; + if(x) + *x = rect.origin.x; + if(y) + *y = rect.origin.y; + if(width) + *width = rect.size.width; + if(height) + *height = rect.size.height; + return; + } } /*