• 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: Making an NSProgressIndicator react as an NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Making an NSProgressIndicator react as an NSControl (From: Charles Françoise <email@hidden>)

  • Prev by Date: Re: Is showWindow supposed to call init?
  • Next by Date: Re: Is showWindow supposed to call init?
  • Previous by thread: Making an NSProgressIndicator react as an NSControl
  • Next by thread: Is showWindow supposed to call init?
  • Index(es):
    • Date
    • Thread