Re: Getting a tooltip to describe your class instance.
Re: Getting a tooltip to describe your class instance.
- Subject: Re: Getting a tooltip to describe your class instance.
- From: Jens Alfke <email@hidden>
- Date: Wed, 26 Aug 2015 17:27:49 -0700
On Aug 26, 2015, at 3:39 PM, Sean McBride < email@hidden> wrote:
By adding doxygen comments, if I understand your question...
No, Alex is talking about a debug-time tooltip, the one that shows up if you hover over the name of an active variable while stopped at a breakpoint. There’s a way to customize what’s displayed by implementing a specific method.
I couldn’t remember the details either, but I remembered it’s called QuickLook, so I googled [xcode quicklook] and this was the top hit:
tl;dr: The method you add to your class is -debugQuickLookObject. The return type is ‘id’ — there’s a whole bunch of different classes you can return, like NSString, NSAttributedString, NSImage, NSColor, NSBezierPath. The object you return gets rendered in the tooltip.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden