Let's say I have a table with a VARCHAR2(100) NOT NULL column definition (I'm using Oracle). In my model, this is an NSString. I want to be able to have the user enter the value for this attribute in a WOText field. Since the column is "NOT NULL", I have to be able to check to make sure the input field actually contains something; i.e. it's not null, and it doesn't contain only spaces (or other whitespace characters). What I'd like to be able to do in my validate method is return an exception if either (1) the value is nil, or (2) the length of the whitespace-trimmed string is 0. The trouble is, I can find no reasonable way to trim leading and trailing whitespace from an NSString! I've been through the archives, but haven't found an answer that made sense to me. This just can't be that difficult! Do I really have to write a big method, dragging in NSCharacterSets, NSScanners, NSRange, etc.? Or go through the string character-by-character? I would think this would be one of the most commonly used string functions. Help! --- Patrick Robinson Extension Information Systems, Virginia Tech [EMAIL PROTECTED]
