顯示包含「Cocoa Directory」標籤的文章。顯示所有文章
顯示包含「Cocoa Directory」標籤的文章。顯示所有文章

2010年12月19日星期日

Cocoa runtime working directory

To specify a working directory of the application at runtime, we could use the 
changeCurrentDirectoryPath:(NSString*) of the NSFileManager

where the [NSBundle mainBundle] get the mainBundle and in my case I need the  "resourcePath" to get the path containing my stuffs.