Re: NSSlider MaxValue
Re: NSSlider MaxValue
- Subject: Re: NSSlider MaxValue
- From: Devin Lane <email@hidden>
- Date: Wed, 13 Aug 2003 13:03:43 -0700
On Wednesday, August 13, 2003, at 11:32 AM, Sean Liong wrote:
>
Hi,
>
>
I determine the maximum value of NSSlider only during runtime using -
>
slider setMaxValue: 32;
>
However, this will be the maximum value of the NSSlider but I dun wan
>
it to point to 32, instead for example I want it to point to 10, what
>
function shall I call? I called the setTickMarkPosition: 10 but can't
>
work, where it still point to 32.
>
>
Thanks for any help...
>
>
Best regards,
>
sean
>
>
_________________________________________________________________
>
Download ringtones, logos and picture messages from MSN Malaysia
>
http://www.msn.com.my/mobile/ringtones/default.asp
>
_______________________________________________
>
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.
>
>
NSSlider inherits from NSControl. Therefore, you have to use
NSControl's value-setting methods. Specifically, the setIntValue:
method would make the slider point to whatever value you want it to.
If you need to set a value that is not an integer (maybe a float or
double), read the documentation on NSControl. There are methods for
setting the value with many different types of data.
Hope that works,
-- Devin Lane, Cocoa Programmer
email: email@hidden
_______________________________________________
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.