Re: Creating a checkbox
Re: Creating a checkbox
- Subject: Re: Creating a checkbox
- From: Andy Lee <email@hidden>
- Date: Thu, 11 Apr 2002 14:09:06 -0400
At 1:35 PM -0400 4/11/02, Mike O'Connor wrote:
How do I create a checkbox? Looks like I start with an NSButton, but how do
I set it up? IB has a "checkbox" button type, but I can't really tell what
it's doing.
Check out the -setButtonType: method in NSButton. The docs refer you
to some constants you can use, as well as other methods of interest.
The constant you probably want is NSSwitchButton.
The slider column is easy, but I'd like it to be the "small" version. How do
I set up the "small" version? Again, IB has a setting for this but I can't
tell exactly what it's adjusting and by how much.
I don't know about NSSlider, but NSScroller has a -setControlSize:
method. Again, check out the class docs. There is a constant called
NSSmallControlSize mentioned in the doc for NSScroller.
--Andy
_______________________________________________
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.