Skip to content

Commit

Permalink
[AppKit] Add NSView.AddToolTip overloads that take NSObjects as owners.
Browse files Browse the repository at this point in the history
Fixes #14996.
  • Loading branch information
rolfbjarne committed May 12, 2022
1 parent 447e637 commit bb8baf4
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit bb8baf4

Please sign in to comment.