Hi, ALL,
I am a Software Developer who tried to learn Cocoa programming.
Currently I am trying to implement the NSSlider with ticks and labels. My task is to place the labels to be aligned with ticks.
Now unfortunately it looks like I will have to create a labels by hand as Cocoa does not provide a way to create a labels for NSSlider. I would also like to have a NSSlider window to be a parent of the labels so that the NSSlider itself will manage the positioning/sizing of the labels.
What is the easiest way of doing so? Everywhere I look labels are made as children of the dialog.panel where the NSSlider is located. However it makes it to have more work.
Is it possible what I'd like to do? Is it in compliance with Cocoa UI guidelines? Will I have to change the z-order of the windows and bring the labels to the top in order for them to be visible? If yes, how?
I am a Software Developer who tried to learn Cocoa programming.
Currently I am trying to implement the NSSlider with ticks and labels. My task is to place the labels to be aligned with ticks.
Now unfortunately it looks like I will have to create a labels by hand as Cocoa does not provide a way to create a labels for NSSlider. I would also like to have a NSSlider window to be a parent of the labels so that the NSSlider itself will manage the positioning/sizing of the labels.
What is the easiest way of doing so? Everywhere I look labels are made as children of the dialog.panel where the NSSlider is located. However it makes it to have more work.
Is it possible what I'd like to do? Is it in compliance with Cocoa UI guidelines? Will I have to change the z-order of the windows and bring the labels to the top in order for them to be visible? If yes, how?