Encode/Decode tooltip in CPView

This commit is contained in:
Antoine Mercadal committed 2012-04-24 16:27:36 -07:00
1 parent 9866bf19a4
commit 3ec4d3e374
1 file changed
+8
+8
View File
@@ -2707,6 +2707,7 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask",
CPViewBoundsKey = @"CPViewBoundsKey",
CPViewFrameKey = @"CPViewFrameKey",
CPViewHitTestsKey = @"CPViewHitTestsKey",
CPViewToolTipKey = @"CPViewToolTipKey",
CPViewIsHiddenKey = @"CPViewIsHiddenKey",
CPViewOpacityKey = @"CPViewOpacityKey",
CPViewSubviewsKey = @"CPViewSubviewsKey",
@@ -2763,6 +2764,10 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask",
_hitTests = ![aCoder containsValueForKey:CPViewHitTestsKey] || [aCoder decodeBoolForKey:CPViewHitTestsKey];
#if PLATFORM(DOM)
[self setToolTip:[aCoder decodeObjectForKey:CPViewToolTipKey]];
#endif
// DOM SETUP
#if PLATFORM(DOM)
_DOMImageParts = [];
@@ -2870,6 +2875,9 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask",
if (_isHidden)
[aCoder encodeBool:_isHidden forKey:CPViewIsHiddenKey];
if (_toolTip)
[aCoder encodeObject:_toolTip forKey:CPViewToolTipKey];
var nextKeyView = [self nextKeyView];
if (nextKeyView !== nil && ![nextKeyView isEqual:self])