ToolTips working on Sonoma 14.1
ToolTips working on Sonoma 14.1
Not sure this is an actual bug but I noticed that my test apps that use gadget ToolTips don't seem to work on macOS Sonoma 14.1. Is it me or have there been some internal changes that might change the expected behavior?
Re: ToolTips working on Sonoma 14.1
Never mind, this is not a PureBasic bug. Sonoma is simply stricter about the order of operations when setting a tooltip than previous macOSes.
Re: ToolTips working on Sonoma 14.1
Could you elaborate ?
Re: ToolTips working on Sonoma 14.1
I was using CocoaMessage() to display a tooltip and it was in the wrong place in the code because I also display text in the menu title. As far as I know, PB's built-in SysTray routines don't allow you to add text along side a status icon.
On macOS Sonoma, you must explicitly put "setToolTip:" via CocoaMessage() immediately after you set the length of the status menu via "setLength:" via CocoaMessage() if you manage it by hand. On previous versions of macOS, you could put the code seemingly anywhere (before or after setting the status menu length) and it would work.
On macOS Sonoma, you must explicitly put "setToolTip:" via CocoaMessage() immediately after you set the length of the status menu via "setLength:" via CocoaMessage() if you manage it by hand. On previous versions of macOS, you could put the code seemingly anywhere (before or after setting the status menu length) and it would work.
Re: ToolTips working on Sonoma 14.1
Thanks, that's useful to know