Skip navigation.
 
mlRe: Translating filenames for command line?
FROM : Greg Titus
DATE : Wed Jan 02 21:34:19 2002

On Wednesday, January 2, 2002, at 05:27  AM, Rosyna wrote:
> Then how do you put an ellipse in an NSString?
>
> Ack, at 1/2/02, Ondra Cada said:
>

>> We are not. Unless something have changed with new Apple tools, only
>> 7-bit
>> chars are OK in @"...". You should never use non-ASCII characters in
>> @"...", since the results would be more or less random
>>
>> It was even documented somewhere (can't remember just now whether in
>> Compiler docs, or Release Notes, or whatever, and don't have time to
>> search
>> docs) for years.


We generally use the Unicode hex value, like so:

+ (NSString *)stringWithCharacter:(unichar)aCharacter;
{
    return [[[NSString alloc] initWithCharacters:&aCharacter length:1]
autorelease];
}

+ (NSString *)horizontalEllipsisString;
{
    return [self stringWithCharacter:0x2026];
}

(Slightly simplified from NSString extensions in OmniFoundation.)

Hope this helps,
   --Greg


Related mailsAuthorDate
mlTranslating filenames for command line? David Feldman Dec 31, 17:27
mlRe: Translating filenames for command line? Andreas Monitzer Dec 31, 17:39
mlRe: Translating filenames for command line? Finlay Dobbie Dec 31, 20:38
mlRe: Translating filenames for command line? Andreas Monitzer Dec 31, 20:55
mlRe: Translating filenames for command line? Scott Anguish Jan 1, 14:21
mlRe: Translating filenames for command line? Thomas Lachand-Rob… Jan 1, 14:37
mlRe: Translating filenames for command line? Rosyna Jan 1, 14:44
mlRe: Translating filenames for command line? Andreas Monitzer Jan 1, 14:47
mlRe: Translating filenames for command line? Scott Anguish Jan 1, 14:51
mlRe: Translating filenames for command line? Scott Anguish Jan 1, 14:54
mlRe: Translating filenames for command line? Finlay Dobbie Jan 1, 19:16
mlRe: Translating filenames for command line? Rainer Brockerhoff Jan 1, 19:42
mlRe: Translating filenames for command line? Charles Srstka Jan 1, 22:47
mlRe: Translating filenames for command line? Scott Anguish Jan 1, 23:48
mlRe: Translating filenames for command line? Charles Srstka Jan 2, 00:01
mlRe: Translating filenames for command line? Finlay Dobbie Jan 2, 00:53
mlRe: Translating filenames for command line? Stéphane Sudre Jan 2, 12:20
mlRe: Translating filenames for command line? Ondra Cada Jan 2, 12:52
mlRe: Translating filenames for command line? Rosyna Jan 2, 14:27
mlRe: Translating filenames for command line? Donald Brown Jan 2, 14:42
mlRe: Translating filenames for command line? Rainer Brockerhoff Jan 2, 15:37
mlRe: Translating filenames for command line? Ondra Cada Jan 2, 15:46
mlRe: Translating filenames for command line? Ondra Cada Jan 2, 16:15
mlRe: Translating filenames for command line? Malte Tancred Jan 2, 16:29
mlRe: Translating filenames for command line? Eric Schlegel Jan 2, 16:29
mlRe: Translating filenames for command line? Rainer Brockerhoff Jan 2, 16:34
mlRe: Translating filenames for command line? Rosyna Jan 2, 16:49
mlRe: Translating filenames for command line? Eric Schlegel Jan 2, 17:05
mlRe: Translating filenames for command line? Rainer Brockerhoff Jan 2, 17:09
mlRe: Translating filenames for command line? Simon Stapleton Jan 2, 18:01
mlRe: Translating filenames for command line? Thomas Lachand-Rob… Jan 2, 20:41
mlRe: Translating filenames for command line? Greg Titus Jan 2, 21:34
mlRe: Translating filenames for command line? Thomas Lachand-Rob… Jan 2, 22:56
mlRe: Translating filenames for command line? Charles Srstka Jan 3, 02:44