> On Aug 26, 2015, at 3:39 PM, Sean McBride <[email protected]> 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:
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/CustomClassDisplay_in_QuickLook/Introduction/Introduction.html
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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]