Re: NSSlider
Re: NSSlider
- Subject: Re: NSSlider
- From: email@hidden
- Date: Mon, 6 May 2002 03:08:46 -0700
On Monday, May 6, 2002, at 02:00  AM, I wrote:
>
 Is there a way to ask an NSSlider if the user still has the mouse 
>
 button pressed?
>
>
 As the target of an NSSlider, I'd like to render myself in a simpler 
>
 fashion until the user lets go of the mouse, the I'll cause one more 
>
 detailed repaint.
>
>
 Something akin to NSView's inLiveResize method would be nice.
Ok, here's a gross hack.  I was hoping that NSSliderCell's isHighlighted 
would return YES while dragging... No such luck.
So I wrote a nasty category to get at the protected variable inside of 
NSSliderCell...  which works fine (for now).
@interface NSSliderCell (isPressed)
- (BOOL)isPressed;
@end
@implementation NSSliderCell (isPressed)
- (BOOL)isPressed
{
	return _scFlags.isPressed;
}
@end
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: 
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| References: |  | 
|  | >NSSlider (From: email@hidden) |