Re: Checking NSTextFields stringValue
Re: Checking NSTextFields stringValue
- Subject: Re: Checking NSTextFields stringValue
- From: "Laurent Daudelin" <email@hidden>
- Date: Wed, 29 Oct 2003 14:29:49 -0500
>
From: "David Dauer" <email@hidden>
>
Date: Wed, 29 Oct 2003 19:18:56 +0100
>
To: Cocoa-Dev <email@hidden>
>
Subject: Checking NSTextFields stringValue
>
>
Hi
>
>
I want to check if some NSTextFields are empty. When i do
>
If ([myTF stringValue] == @"")
>
{
>
// do sth.. E.g. Alert
>
}
>
If ([myTF2 stringValue] == @"")
>
{
>
// do sth.. E.g. Alert
>
}
>
>
I can simply tab through the fields and the value isn't @"" so that this is
>
useless :/
>
>
Any idea?
Sorry, no idea, but if all you want is checking if they are empty, why not
using if ([myTF length] == 0) ???
-Laurent.
--
===========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************* Usual disclaimers apply *************************
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.