2011-02-10 4 views
1

MT로 변환하는 파일의 보안 클래스를 변경하려면 다음 행을 수행하십시오.NSFileManager를 사용하여 파일의 보안 클래스를 변경하는 방법은 무엇입니까?

변경 파일의 클래스 : -[NSFileManager setAttributes:ofItemAtPath:error:]

특성 : NSFileProtectionKey (NSFileProtectionComplete, NSFileProtectionNone)

가 어떻게 MT에서 파일의 클래스를 변경합니까?

기타 : 클래스를 변경하면 어떻게 작동하는지 확인할 수 있습니까? 이 같은

답변

1

뭔가 :

NSError error; 
var dict = new NSMutableDictionary(); 
dict.SetObject ("NSFileProtectionComplete", "NSFileProtectionKey"); 
mgr.SetAttributes (path, dict, out error); 
+0

좋아요. 따라서 const (아직)가 없습니다. 내가 참조. 고마워. – Krumelur

관련 문제