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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Dirk Lattermann <dlatt>
Submitted on:  Tue 05 Aug 2003 04:28:06 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Quentin Mathé <qmathe>
Open/Closed: Closed

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>
Project Member
Sat 12 Feb 2005 03:56:46 PM UTC, comment #2:

This has been fixed for a year now.

Fred Kiefer <FredKiefer>
Project 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>
Project MemberIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 12 Feb 2005 03:56:46 PM UTCFredKieferStatusNone=>Fixed
  Open/ClosedAnalyzed=>Closed
Sun 07 Nov 2004 09:37:34 PM UTCqmatheAssigned toNone=>qmathe
  Open/ClosedOpen=>Analyzed

Back to the top


Powered by Savane 3.1-cleanup1