Re: tooltip on nscollection view item

2018-02-07 Thread Rob Petrovec
Or just use NSView -toolTip

—Rob


> On Feb 7, 2018, at 7:26 AM, Pier Bover  wrote:
> 
> 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  > 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 (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/pierbover11%40gmail.com 
>> 
>> 
>> This email sent to pierbove...@gmail.com 
>> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
> )
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com 
> 
> 
> This email sent to petr...@mac.com 
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: tooltip on nscollection view item

2018-02-07 Thread Pier Bover
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  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 (Cocoa-dev@lists.apple.com)
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/pierbover11%40gmail.com
>
> This email sent to pierbove...@gmail.com
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


tooltip on nscollection view item

2018-02-07 Thread Daniel Santos
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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com