• 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: Upper case string in formatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upper case string in formatter


  • Subject: Re: Upper case string in formatter
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Sat, 4 Dec 2004 14:48:08 -0800

Hello...

If you want to update the entered text as it is typed in by the user, then you do want to use isPartialStringValid::: to change the string to uppercase.

For example, something like:

/* typed in mail, etc... */

- (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString **)newString errorDescription:(NSString **)error
{
NSString *upString = [partialString uppercaseString];


	if ([upString isEqualToString:partialString]) {return TRUE;}
	else
	{
		*newString = upString;
		return FALSE;
	}
}


Hope that helps,

	Louis


Dear list!

I need my formatter to convert all characters to upper case. I have tried
to change the string in 'isPartialStringValid' but it does not work. Can
someone please tell me the right place in the formatter to place this code.

Best regards Peter


_______________________________________________ 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: 
 >Upper case string in formatter (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: Typing attributes for a rich NSField
  • Next by Date: (no subject)
  • Previous by thread: Re: Upper case string in formatter
  • Next by thread: RE: Upper case string in formatter
  • Index(es):
    • Date
    • Thread