mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-21 01:40:41 +00:00
Refs #1245. Fixed: setToolTip: belongs in CPView, not CPControl.
This commit is contained in:
@@ -94,8 +94,6 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
BOOL _trackingWasWithinFrame;
|
||||
unsigned _trackingMouseDownFlags;
|
||||
CGPoint _previousTrackingLocation;
|
||||
|
||||
CPString _toolTip @accessors(property=toolTip);
|
||||
}
|
||||
|
||||
+ (CPDictionary)themeAttributes
|
||||
|
||||
@@ -186,6 +186,8 @@ var CPViewFlags = { },
|
||||
CPView _previousKeyView;
|
||||
|
||||
unsigned _viewClassFlags;
|
||||
|
||||
CPString _toolTip @accessors(property=toolTip);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+2
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user