Allow non-string tooltips.

Technically the tooltip should be a `CPString` but if a date or a number is passed this will now work without a crash.
This commit is contained in:
Alexander Ljungberg committed 2012-10-23 11:44:21 +01:00
1 parent 90d27133b0
commit fb155dec58
1 file changed
+3
+3
View File
@@ -333,6 +333,9 @@ var CPViewFlags = { },
if (_toolTip == aToolTip)
return;
if (aToolTip && ![aToolTip isKindOfClass:CPString])
aToolTip = [aToolTip description];
_toolTip = aToolTip;
if (_toolTip)