Cocoa備忘録。 日本語のフォルダが含まれたパスとか来ちゃった場合に開けなくて困ったりした時。 [NSString stringWithCString:cstr]ではなく[filemanager stringWithFileSystemRepresentation:cstr length:len]でパスのNSStringを作るが良いという話。 #import <stdio.h> #import <string.h> #import <Foundation/Foundation.h> int main(int argc, char *argv[]) { NSAutoreleasePool *apool ; NSFileManager *fm; NSString *cstrString, *sysRepString; int i; apool = [[NSAutoreleasePool al
![マルチバイトパスが来ちゃった場合に - Pentanium Reactor Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/df3a50c14b465108d37d0f484920317dd74971fb/height=288;version=1;width=512/http%3A%2F%2Fu.xgoo.jp%2Fimg%2Fsns%2Fblog.png)