Refs #1245. Fixed: setToolTip: belongs in CPView, not CPControl.

This commit is contained in:
Alexander Ljungberg
2011-05-11 21:36:49 -04:00
parent 345d48e224
commit 1c0f679f50
3 changed files with 4 additions and 12 deletions
-2
View File
@@ -94,8 +94,6 @@ var CPControlBlackColor = [CPColor blackColor];
BOOL _trackingWasWithinFrame;
unsigned _trackingMouseDownFlags;
CGPoint _previousTrackingLocation;
CPString _toolTip @accessors(property=toolTip);
}
+ (CPDictionary)themeAttributes
+2
View File
@@ -186,6 +186,8 @@ var CPViewFlags = { },
CPView _previousKeyView;
unsigned _viewClassFlags;
CPString _toolTip @accessors(property=toolTip);
}
/*
+2 -10
View File
@@ -118,7 +118,7 @@ CPToolTipDefaultColorMask = CPAttachedBlackWindowMask;
@end
@implementation CPControl (Tooltips)
@implementation CPView (Tooltips)
/*!
Sets the tooltip for the receiver.
@@ -176,14 +176,6 @@ CPToolTipDefaultColorMask = CPAttachedBlackWindowMask;
}
}
/*!
Returns the receiver's tooltip
*/
- (CPString)toolTip
{
return _toolTip;
}
/*! @ignore
starts the tooltip timer
*/
@@ -229,4 +221,4 @@ CPToolTipDefaultColorMask = CPAttachedBlackWindowMask;
CPCurrentToolTip = [_CPToolTip toolTipWithString:_toolTip forView:self];
}
@end
@end