Lazy calculation of tooltip text

2018-07-06 Thread Jonathan Taylor
I have a UI item (text field) that displays a tooltip when the user hovers over it. However, the information to be displayed in the tooltip is dynamic and relatively expensive to compute. At the moment the tooltip is bound to a string property which I manually update twice a second. It seems tha

Re: Lazy calculation of tooltip text

2018-07-06 Thread Jens Alfke
> On Jul 6, 2018, at 8:22 AM, Jonathan Taylor > wrote: > > Any suggestions on how I might supply tooltip text dynamically, when the > tooltip is about to display? @protocol NSViewToolTipOwner - (NSString *)view:(NSView *)view stringForToolTip:(NSToolTipTag)tag point:(NSPoint)point userDat

Re: Why are the simplest things the hardest?

2018-07-06 Thread Rick Mann
> On Jul 5, 2018, at 01:31 , Allan Odgaard wrote: > > On 5 Jul 2018, at 6:44, Rick Mann wrote: > >> Annoying I have to have a first responder view just to allow even my >> Document to respond to menu commands. > > Quoting the > [documentation](https://developer.apple.com/library/archive/doc

Re: Why are the simplest things the hardest?

2018-07-06 Thread Allan Odgaard
On 7 Jul 2018, at 6:55, Rick Mann wrote: If I have view commands (like fixed perspectives in a 3D view) in a menu, I should be able to implement those on the view controller, don't you think? No-one is preventing you from implementing view commands in the view controller. But if you want t