FROM : Parmadil Istarion
DATE : Fri Dec 13 13:05:01 2002
Hi,
I'm writing a Cocoa class that interfaces with the Carbon resource
manager. Can anyone tell me, or point me to the right docs, what
NSString encoding to use for types like Str255 and ResType?
Currently I am basically doing this (in a NSString category):
- initWithStr255:(Str255)str
{
return [self initWithData:[NSData dataWithBytes:&(str[1])
length:str[0]] encoding:NSMacOSRomanEncoding];
}
I picked NSMacOSRoman because it seemed a good guess. :)
I hope this isn't a stupid question, but I'm not familiar with
encodings at all.
Thanks, Parmadil
DATE : Fri Dec 13 13:05:01 2002
Hi,
I'm writing a Cocoa class that interfaces with the Carbon resource
manager. Can anyone tell me, or point me to the right docs, what
NSString encoding to use for types like Str255 and ResType?
Currently I am basically doing this (in a NSString category):
- initWithStr255:(Str255)str
{
return [self initWithData:[NSData dataWithBytes:&(str[1])
length:str[0]] encoding:NSMacOSRomanEncoding];
}
I picked NSMacOSRoman because it seemed a good guess. :)
I hope this isn't a stupid question, but I'm not familiar with
encodings at all.
Thanks, Parmadil
| Related mails | Author | Date |
|---|---|---|
| Parmadil Istarion | Dec 13, 13:05 | |
| Nathan Day | Dec 21, 03:06 | |
| Geoff Coffey | Dec 21, 08:37 | |
| Parmadil Istarion | Dec 22, 18:38 | |
| Nathan Day | Dec 23, 19:31 |






Cocoa mail archive

