Thanks for the help. The main gap in my understanding was that by default an
NSFormatter uses the same format string for converting a string to an object
and converting an object to a string. It is therefore fussy about how the
user types the string.

By subclassing the formatter you can customise the behaviour (i.e. have it
use a simple NSDateFormatterMediumStyle when formatting the date object to a
string but customise parsing behaviour when it converts a NSString to a date
object).

It now seems quite elementary so I apologise for the noise!

Matthew
_______________________________________________

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]

Reply via email to