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






Cocoa mail archive

