Hi,
sText is an instance variable of type NSString. No properties are involved.
The loop below is supposed to get the first character of sText and store that char in sCurrentCharacter. Then the rest of sText should be reassigned to sText. This goes on until the string has been eaten up. (I left out all the code which actually does something sensible to the variables).
while ([sText length] > 0)
{
// Get the current first ASCII character.
NSString *sCurrentCharacter = [sMorseText substringToIndex:1];
// Keep everything but the first character.
sText = [sText substringFromIndex:1];
}
Questions: do I have to release sText before reassigning the result of "substringFromIndex"? If yes: why? If not: why not? :-)
René