Re: Programatically creating a checkbox
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