Re: Making an NSProgressIndicator react as an NSControl
Re: Making an NSProgressIndicator react as an NSControl
- Subject: Re: Making an NSProgressIndicator react as an NSControl
- From: Keary Suska <email@hidden>
- Date: Wed, 07 Jun 2006 10:16:25 -0600
on 6/7/06 4:35 AM, email@hidden purportedly said:
> I am using an NSProgressIndicator in my application. I have already subclassed
> it to have it act as a dragging destination. However, I also wish for it to
> react to user clicks, doiuble-clicks, etc. like an NSControl. Is there any way
> to easily "transform" an NSView in an NSControl ?
>
> At the least, what I wish to do is this: when clicked on, the
> NSProgressIndicator jumps to the point I clicked on, and passes a few messages
> to other objects to update their state.
All NSViews can track mouse movements and clicks. It's just that you have to
implement the handling yourself, as if you were working with your own
home-grown custom NSView. AFAIK, NSProgressIndicator does not filter out
clicks, so you should be able to access those events.
If you want some of this handled for you, you could try a NSLevelIndicator
instead.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden