Re: X.4 formatters behaviour and nil value ?
Re: X.4 formatters behaviour and nil value ?
- Subject: Re: X.4 formatters behaviour and nil value ?
- From: Frédéric Testuz <email@hidden>
- Date: Wed, 14 Dec 2005 16:50:17 +0100
There is really no one who know something about this problem? I tried
on some places, but I didn't got a response.
Le 4 déc. 05 à 11:42, Frédéric Testuz a écrit :
Hello,
With X.4, I want use the new NSDateFormatter behaviour (it works
better with user preferences). But I have a problem.
At the nib opening, I'm doing :
dateFormatter=[dateField formatter];
// dateField is connected to a NSTextField with a NSDateFormatter
[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateStyle:NSDateFormatterShortStyle];
And it works.
But after putting a date in dateField, I can't delete it. With the
old behaviour, the formatter returns nil for an empty string. The
new behaviour returns an error.
Is there a setting in NSDateFormatter to get nil for an empty or
nil string ? With NSNumberFormatter, there is setNilSymbol: but I
saw nothing for NSDateFormatter.
Frédéric _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden