Mercurial > dwindows
diff mac/dw.m @ 1400:ccd383e11ff8
Allow removing of tooltips by passing NULL or "" and prevent double tooltips on some platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Nov 2011 20:28:15 +0000 |
parents | 117cc38a3799 |
children | c607fd86e5c2 |
line wrap: on
line diff
--- a/mac/dw.m Sun Nov 27 12:08:05 2011 +0000 +++ b/mac/dw.m Sun Nov 27 20:28:15 2011 +0000 @@ -8172,7 +8172,10 @@ void API dw_window_set_tooltip(HWND handle, char *bubbletext) { id object = handle; - [object setToolTip:[NSString stringWithUTF8String:bubbletext]]; + if(bubbletext && *bubbletext) + [object setToolTip:[NSString stringWithUTF8String:bubbletext]]; + else + [object setToolTip:nil]; } /*