I the QC Editor Window with a comp running, a tooltip from a
strctured output port is sometimes expressed in full A (enumerated
isn't quite the correct word here is it?), other times the tooltip
just shows the pointers B.
enumerated is sufficiently clear :)
Is there rhyme or reason as to when A and when B? Could explicit be
forced in a Preference option?
Yes. (*gasp* ;)
Note your pictures closely. Very closely.
In Picture A, the port is recognized as a Structure port. That's
nice. Tooltip-maker knows that it can represent a structure using a
structure-prettifier function; result is the "enumerated" structure
tooltip.
In Picture B, the port is recognized as a Virtual port. Holy cow,
that's scary. Like, anything could be living on that port. Tooltip-
maker knows just 1 thing about virtual ports: they're NSObject
subclasses, and thus they implement -description. Tooltip-maker asks
the port value for its -description, which prints the NSLog-style
version (pointers and everything).
As for the preference option, there is no code to automatically
prettify virtual ports, so no preference could change it. It's worth
a radar though, since printing pointers is 100% useless to everyone
except for a few bizarre cases where one is writing a plugin (and in
that case, they can do NSLog themselves). http://
bugreporter.apple.com, please let me know what the # is (at my work
address, please).
--
[ christopher wright ]
[email protected]
http://kineme.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]