Re: NSFormatter not getting called
Re: NSFormatter not getting called
- Subject: Re: NSFormatter not getting called
- From: James Walker <email@hidden>
- Date: Mon, 16 Feb 2009 16:59:29 -0800
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@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