bugGNUstep - Bugs: bug #4635, NSButtonCell: value is title...

Group
 
 

bug #4635: NSButtonCell: value is title instead of state

Submitter:  Dirk Lattermann <dlatt>
Submitted:  Tue 05 Aug 2003 04:28:06 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  qmathe
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 12 Feb 2005 05:24:03 PM UTC, comment #3: 

this bug is actually only partially fixed.
the -objectValue -setObjectValue: part is fixed (and imho the important part.)

the -stringValue -setStringValue: is not, still sets the title where it should set the state.
though this is a delicate issue, considering anyone who went [aButton setStringValue:@"a button title"]; should get an enabled button with the default title.

and iirc [aButton setStringValue:@""]; should give you a disabled button with the default title.


matt rice <ratmice>
Group Member
Sat 12 Feb 2005 03:56:46 PM UTC, comment #2: 

This has been fixed for a year now.

Fred Kiefer <FredKiefer>
Group Member
Sun 07 Nov 2004 09:37:34 PM UTC, comment #1: 

Will probably be fixed in the next release, I have submitted a patch…

Quentin Mathé <qmathe>
Group Member
Tue 05 Aug 2003 04:28:06 PM UTC, original submission:  

The docs mention that for some subclasses of NSCell, such as NSButtonCell, the object's value is its state.  This is needed for EOControlAssociation to be able to set the state of a switch button (checked or unchecked) according to some database value (it sets the button's value via setObjectValue:).
Right now, changing the value results in setting the switch button's label (or title).
Something like this is already mentioned in the source of
NSButtonCell.m:
// FIXME: The spec says that the stringValue and setStringValue methods should
// also be redefined. But this does not fit to the way we uses this for the title.

Dirk Lattermann <dlatt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-02-12 FredKiefer StatusNone Fixed
    Open/ClosedAnalyzed Closed
2004-11-07 qmathe Assigned toNone qmathe
    Open/ClosedOpen Analyzed

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code