Re: NSTextField w/ NSDateFormatter contains something?
Re: NSTextField w/ NSDateFormatter contains something?
- Subject: Re: NSTextField w/ NSDateFormatter contains something?
- From: Andréas Saudemont <email@hidden>
- Date: Fri, 1 Oct 2004 13:32:11 +0200
Micheal,
On Fri, 1 Oct 2004 05:42:51 -0400, Michael Hanna <email@hidden> wrote:
>
I have an NSTextField that has an NSDateFormatter attached to it. I
>
want to determine if the user entered something into it, I've tried
>
>
if([[alarmTime stringValue] isEqual:@""]) {}
>
>
but that doesn't seem to work.. any suggestions?
What is the format string of the NSDateFormatter? I guess the
non-specifier characters in the format string will always be present
in the formatted string, which is returned by stringValue.
Using one of the textDidChange: or textDidEndEditing: delegate methods
is more appropriate if you want to be notified when the user enters
something in the text field.
Andréas
_______________________________________________
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