• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tooltip on nscollection view item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: tooltip on nscollection view item
      • From: Rob Petrovec <email@hidden>
References: 
 >tooltip on nscollection view item (From: Daniel Santos <email@hidden>)

  • Prev by Date: tooltip on nscollection view item
  • Next by Date: Re: tooltip on nscollection view item
  • Previous by thread: tooltip on nscollection view item
  • Next by thread: Re: tooltip on nscollection view item
  • Index(es):
    • Date
    • Thread