====== 디렉토리 탐색하기 ====== [[http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/EnumADir.html|위치]] NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:NSHomeDirectory()]; NSString *pname; while (pname = [direnum nextObject]) { if ([[pname pathExtension] isEqualToString:@"rtfd"]) { /* don’t enumerate this directory */ [direnum skipDescendents]; } else { /* ...process file here... */ } } ====== Foundation Functions Referece ====== 클래스가 아닌 함수 형태의 레퍼런스 함수들을 찾아 볼 수 있다. * [[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html|web reference]] ===== NSString을 NSMutableString으로 복사하기 ===== // someObject // NSMutableString *postTitle; @property/@synthesize 로 선언되어있다 // titleStr은 NSString 클래스임 [someObject setPostTitle:[titleStr mutableCopy]]; // ! mutableCopy로 카피가 가능함