Skip navigation.
 
mlRe: Programatically creating a checkbox
FROM : John Stiles
DATE : Mon Nov 19 17:01:55 2007

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
>
>

Related mailsAuthorDate
mlProgramatically creating a checkbox John Stiles Nov 19, 04:34
mlRe: Programatically creating a checkbox Adam R. Maxwell Nov 19, 04:43
mlRe: Programatically creating a checkbox mmalc crawford Nov 19, 05:07
mlRe: Programatically creating a checkbox John Stiles Nov 19, 05:35
mlRe: Programatically creating a checkbox Shawn Erickson Nov 19, 05:41
mlRe: Programatically creating a checkbox Jonathan Hess Nov 19, 10:09
mlRe: Programatically creating a checkbox I. Savant Nov 19, 13:07
mlRe: Programatically creating a checkbox Alastair Houghton Nov 19, 13:40
mlRe: Programatically creating a checkbox John Stiles Nov 19, 17:01
mlRe: Programatically creating a checkbox mmalc crawford Nov 19, 17:40
mlRe: Programatically creating a checkbox John Stiles Nov 19, 18:42
mlRe: Programatically creating a checkbox mmalc crawford Nov 19, 18:53
mlRe: Programatically creating a checkbox Andy Lee Nov 19, 20:29
mlRe: Programatically creating a checkbox mmalc crawford Nov 19, 22:23
mlRe: Programatically creating a checkbox Paul Bruneau Nov 19, 22:33