2009-07-09 9 views

Répondre

2

Vous pouvez essayer ce qui suit:

const unichar cStringArray[] = { 0x0097, 0}; 
NSString* tmp = [NSString stringWithCharacters:cStringArray length:sizeof cStringArray/sizeof *cStringArray]; 

J'ai essayé le code ci-dessus et lié la chaîne résultante à un NSTextField.
Le champ de texte n'affichait aucun caractère. Quel glyphe attendez-vous?
http://www.fileformat.info/info/unicode/char/0097/index.htm montre un trait d'union.

-1

Essayez

[NSString stringWithUTF8String:"Some text-"] 

où le '-' est votre personnage est entré avec les caractères spéciaux Panneau ⌥⌘T

Questions connexes