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

Re: Programatically creating a checkbox


  • Subject: Re: Programatically creating a checkbox
  • From: John Stiles <email@hidden>
  • Date: Mon, 19 Nov 2007 08:01:55 -0800

Or at least, documenting that "NSSwitchButton" makes a "checkbox."
The documentation is highly unclear:

NSToggleButton
After the first click, the button displays its alternate image or title; a second click returns the button to its normal state.


This option is called “Toggle” in Interface Builder’s Button Inspector.


NSSwitchButton This style is a variant of NSToggleButton that has no border.

This type of button is available as a separate palette item in Interface Builder.


(http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSButtonCell_Class/Reference/Reference.html#// apple_ref/doc/c_ref/NSSwitchButton)
The word checkbox, in fact, is not listed once on the entire page :(




On Nov 19, 2007, at 4:40 AM, Alastair Houghton wrote:

On 19 Nov 2007, at 12:07, I. Savant wrote:

On Nov 18, 2007, at 11:35 PM, John Stiles wrote:

OK, should I file a documentation bug then?
Checkboxes have never been called switches on this operating system.


Huh? The button type has *always* been "NSSwitchButton".

I think he means that it should be called NSCheckboxButton, the assumption being that they were called "switches" on NeXT/OpenSTEP and that NSSwitchButton is a hangover from that.


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Programatically creating a checkbox
      • From: mmalc crawford <email@hidden>
References: 
 >Programatically creating a checkbox (From: John Stiles <email@hidden>)
 >Re: Programatically creating a checkbox (From: mmalc crawford <email@hidden>)
 >Re: Programatically creating a checkbox (From: John Stiles <email@hidden>)
 >Re: Programatically creating a checkbox (From: "I. Savant" <email@hidden>)
 >Re: Programatically creating a checkbox (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: How to know OS Version
  • Next by Date: Openning a System Preferences panel
  • Previous by thread: Re: Programatically creating a checkbox
  • Next by thread: Re: Programatically creating a checkbox
  • Index(es):
    • Date
    • Thread