gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnustep-cvs] r27874 - in /libs/gui/trunk: ChangeLog Source/NSCell.m


From: David Chisnall
Subject: Re: [Gnustep-cvs] r27874 - in /libs/gui/trunk: ChangeLog Source/NSCell.m
Date: Mon, 16 Feb 2009 16:58:19 +0000

I just checked the Apple documentation.  It says:

For Mac OS X v10.3 and later: If you use a class that responds to the selectorattributedStringValue for the object value of a cell, the cell uses that method to fetch the string to draw rather than the stringValue method.



This is not what the code Fred posted does. It calls - attributedStringValue, but then sets the contents to the return from - description.



Checking the documentation for -setObjectValue: there is nothing to indicate that -description is ever called; it requires an NSFormatter to be provided to convert from the object value to the display string, although this may be undocumented behavior.



David

On 16 Feb 2009, at 16:47, Gregory John Casamento wrote:

"If Apple really allows non-String parameters to setStringValue: this is rather a bug then a feature. If you insist to add this to GNUstep, it is fine for me, but at least we should not break working GNUstep code for this."

Since it is documented on their site I would not classify this as a bug. It is a bug on our side if we don't have it, in my opinion.

GC
Gregory Casamento -- Principal Consultant - OLC, Inc
# GNUstep Chief Maintainer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]