Re: tooltip on nscollection view item
Re: tooltip on nscollection view item
- Subject: Re: tooltip on nscollection view item
- From: Pier Bover <email@hidden>
- Date: Wed, 07 Feb 2018 09:26:51 -0500
You could use an NSPopover:
let myPopover = NSPopover()
> let storyboard = NSStoryboard(name: NSStoryboard.Name(rawValue: "Main"),
> bundle: nil)
> let identifierPopover = NSStoryboard.SceneIdentifier(rawValue:
> "MyPopoverViewController")
> myPopover.contentViewController =
> storyboard.instantiateController(withIdentifier: identifierPopover) as?
> MyPopoverViewController
> myPopover.show(relativeTo: myView.bounds, of: myView, preferredEdge:
> NSRectEdge.minY)
On Wed, Feb 7, 2018 at 7:39 AM, Daniel Santos <email@hidden> wrote:
> Hello all,
>
> I have a resizable collection view where each element is an NSImageView.
> I want to show a tooltip with some information on each item.
>
> How do I accomplish this ?
> Thanks in advance
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden