• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField w/ NSDateFormatter contains something?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextField w/ NSDateFormatter contains something? (From: Michael Hanna <email@hidden>)

  • Prev by Date: NSTextField w/ NSDateFormatter contains something?
  • Next by Date: Re: Boggled By Bindings
  • Previous by thread: NSTextField w/ NSDateFormatter contains something?
  • Next by thread: [ANN] YAML for Cocoa
  • Index(es):
    • Date
    • Thread