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

[AppKit] Add NSView.AddToolTip overloads that take NSObjects as owners. Fixes #14996. #15000

Merged
merged 1 commit into from
May 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16212,13 +16212,22 @@ partial interface NSView : NSDraggingDestination, NSAnimatablePropertyContainer,
nint AddToolTip (CGRect rect, INSToolTipOwner owner, IntPtr userData);
#endif

#if NET
[Sealed]
[Export ("addToolTipRect:owner:userData:")]
nint AddToolTip (CGRect rect, NSObject owner, IntPtr userData);
#endif

#if NET
[Wrap ("AddToolTip (rect, owner, IntPtr.Zero)")]
#else
[Wrap ("AddToolTip (rect, (NSObject)owner, IntPtr.Zero)")]
#endif
nint AddToolTip (CGRect rect, INSToolTipOwner owner);

[Wrap ("AddToolTip (rect, owner, IntPtr.Zero)")]
nint AddToolTip (CGRect rect, NSObject owner);

[Export ("removeToolTip:")]
void RemoveToolTip (nint tag);

Expand Down