• 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: Creating a checkbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Creating a checkbox
      • From: "Mike O'Connor" <email@hidden>
References: 
 >Creating a checkbox (From: "Mike O'Connor" <email@hidden>)

  • Prev by Date: Re: Creating a checkbox
  • Next by Date: Re: Frameworks included in bundles (NOT Applications)???
  • Previous by thread: Re: Creating a checkbox
  • Next by thread: Re: Creating a checkbox
  • Index(es):
    • Date
    • Thread