Kyle Sluder wrote:
You haven't implemented the three required methods
-stringForObjectValue:, -getObjectValue:forString:errorDescription:,
and -attributedStringForObjectValue:withDefaultAttributes:.
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/DataFormatting/Articles/CreatingACustomFormatter.html#//apple_ref/doc/uid/20000196
Granted that the guide says these methods must be overridden, I don't
think that the attributed string one is really required. The
NSFormatter reference docs for
attributedStringForObjectValue:withDefaultAttributes: say that "The
default implementation returns nil to indicate that the formatter object
does not provide an attributed string." And I have working formatters
that do not override this method.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]