Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSView.AddToolTip should offer an overload with an NSObject owner #14996

Closed
sandyarmstrong opened this issue May 11, 2022 · 0 comments · Fixed by #15000
Closed

NSView.AddToolTip should offer an overload with an NSObject owner #14996

sandyarmstrong opened this issue May 11, 2022 · 0 comments · Fixed by #15000
Labels
bug If an issue is a bug or a pull request a bug fix
Milestone

Comments

@sandyarmstrong
Copy link
Member

Previously, AddToolTip only allowed sending an NSObject as owner. Now, it only allows sending an INSToolTipOwner. Both should be allowed. According to the docs, the owner is

An object from which to obtain the tooltip string. The object should either implement view:stringForToolTip:point:userData:, or return a suitable string from its description method. (It can therefore simply be an NSString object.)

It feels like too much ceremony to have to implement INSToolTipOwner when before we could just pass NSString, which satisfies the second option according to Apple.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug If an issue is a bug or a pull request a bug fix
Projects
None yet
2 participants