Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[Core] Clarify the deprecation notice for isEmptyOrWhitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Feb 26, 2011
1 parent 5b6e5c9 commit 843becd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/Three20Core/Headers/NSStringAdditions.h
Expand Up @@ -30,7 +30,24 @@

/**
* Determines if the string is empty or contains only whitespace.
* @deprecated Use TTIsStringWithAnyText: instead.
* @deprecated Use TTIsStringWithAnyText() instead. Updating your use of
* this method is non-trivial. See the note below.
*
* Notes for updating your use of isEmptyOrWhitespace:
*
* if (!textField.text.isEmptyOrWhitespace) {
*
* becomes
*
* if (TTIsStringWithAnyText(textField.text) && !textField.text.isWhitespaceAndNewlines) {
*
* and
*
* if (textField.text.isEmptyOrWhitespace) {
*
* becomes
*
* if (0 == textField.text.length || textField.text.isWhitespaceAndNewlines) {
*/
- (BOOL)isEmptyOrWhitespace __TTDEPRECATED_METHOD;

Expand Down

0 comments on commit 843becd

Please sign in to comment.