• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSlider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)

  • Prev by Date: NSSlider
  • Next by Date: Re: Write to a text file
  • Previous by thread: NSSlider
  • Next by thread: [sort of OT] PackageMaker help
  • Index(es):
    • Date
    • Thread