Questions tagged [nslevelindicator]

NSLevelIndicator is a subclass of NSControl that displays a value on a linear scale. Level indicators provide a visual representation of a level or amount of something, using discrete values. While similar to NSSlider, it provides a more customized visual feedback to the user. Level indicators do not have a “knob” indicating the current setting or allowing the user to adjust settings.

13 questions
3
votes
1 answer

NSLevelIndicator disable critical value

I have a mac application that i have created that measures bandwidth. I have setup alerts for the user when they have reached a certain percent of the bandwidth. I have options to disable the warning value (yellow bars) and the critical cells (red…
Offir Golan
  • 91
  • 1
  • 7
2
votes
3 answers

NSLevelIndicator - Cocoa

How would I be able to use a NSLevelIndicator? I am very new to this so, I don't know much on how to use a progress bar for my application.
lab12
  • 6,400
  • 21
  • 68
  • 106
2
votes
2 answers

Is there a custom control similar to NSLevelIndicator with reverse coloring?

I need a control similar to NSLevelIndicator in NSContinuousCapacityLevelIndicatorStyle, but with reverse coloring. With NSLevelIndicator, the colors are like this: Green up to the warning level, yellow from warning to critical level, red from…
Dirk
  • 2,335
  • 24
  • 36
1
vote
1 answer

Using NSLevelIndicators with NSSliders Objective-C

I'm learning Objective-c and made a little practice app to take input from an NSSlider and set the level to it. However, I would like to know if there is any way to make the level indicator update with the dragging of the slider. Currently, it only…
1
vote
1 answer

Cocoa OS X NSLevelIndicator type

The default NSLevelIndicator styles are shown in the image below: How can I make the level indicator to look the same as this one in the Sound.prefPane of the System Preferences app (Input level)?
pixel
  • 73
  • 1
  • 6
1
vote
2 answers

Make NSLevelIndicator draw rounded edges

I want to create a custom class for my NSLevelIndicator which just rounds up the edges. (i.e. like the rounded rect button) I created a custom class and I know I have to implement this in the -(void)drawRect:(NSRect)dirtyRect; method but I have…
1
vote
1 answer

NSLevelIndicator fading when not highlighted

When the NSLevelIndicator (in star ratings mode) is interacted with it shows placeholder dots for where there are no stars. These dots however fade once the interaction with the NSLevelIndicator is seized. This brings with it obvious UI problems…
Tom O'Reilly
  • 113
  • 1
  • 8
0
votes
0 answers

What is the iOS equivalent of NSLevelIndicator?

I'd like to show a battery indicator of a Bluetooth peripheral in my iOS app. Is there a version of NSLevelIndicator (macOS) but that I could use in iOS? The closest alternative I found is reversing the UIActivityIndicatorView but it's based on…
axelmukwena
  • 779
  • 7
  • 24
0
votes
2 answers

Custom NSLevelIndicator doesn't show assigned values

I have created a custom NSLevelIndicator which can display a string value within it. Below is the code for it. I tested this in a storyboard OSX app and it works well. import Cocoa class CustomLevelIndicator: NSLevelIndicator { var text:…
Isuru
  • 30,617
  • 60
  • 187
  • 303
0
votes
0 answers

NSTableView binding with CoreData and use objectValueForTableColumn (DataSource delegate)

I have an NSTableView with two columns, First of them(With text cells) get it data through an NSArrayController.arrangedObjects.someKey bound to a Core Data entity. All is OK. But second column is NSLevelIndicatorCell (Level Indocator Cell in IB's…
0
votes
1 answer

Bi-directional NSLevelIndicator (origin at center of indicator) - how?

I need a graphical indication of signed "wrongness" of something, i.e. 0 is perfect, -1.0 is completely wrong in one direction, 0.3 is partly correct, but skewed to the right, 1.0 is completely wrong in the other direction. Sort of like a…
0
votes
2 answers

NSLevelIndicator: detect click and update

I want to use a NSLevelIndicator to manage ratings in my apps but I don' t understand how to detect click on it and update the ratings. This is the code: the property rate is created in the .h file and it's an IBOutlet correctly linked in IB. -…
Luca
  • 1,704
  • 3
  • 29
  • 42
0
votes
4 answers

Animating the NSLevelIndicator when the values change

Currently I have the following code to update the NSLevelindicator: [self.headerIndicator selfFloatValue:heightValue] Is there any way to animate the the level indicator between values when they update?