Reputation: 735
I'm wondering if it's possible to set a tooltip on a drawn NSBezierPath
.
Why I'm asking this is the following: I'm adding shapes in the form of NSRect
to the view. These rects represent periods of history. It would be amazing to see the start year of the period together with the end year.
Now I'm wondering if it's possible since there is no class method of NSBezierPath
that supports this.
Upvotes: 0
Views: 112
Reputation:
In the NSView that contains your bezier paths, call -addToolTipRect:owner:userData:
for each tooltip you want to add. The -bounds
method on each path will give you the bounding rect.
Upvotes: 2