Changes the attributes of a given file or directory. (Deprecated in Mac OS X v10.5. Use setAttributes:ofItemAtPath:error: instead.)
Original signature is '- (BOOL)changeFileAttributes:(NSDictionary *)attributes atPath:(NSString *)path'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use setAttributes:ofItemAtPath:error: instead.")] public virtual bool ChangeFileAttributesAtPath( NSDictionary attributes, NSString path )
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use setAttributes:ofItemAtPath:error: instead.")> _ Public Overridable Function ChangeFileAttributesAtPath ( _ attributes As NSDictionary, _ path As NSString _ ) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use setAttributes:ofItemAtPath:error: instead.")] public: virtual bool ChangeFileAttributesAtPath( NSDictionary^ attributes, NSString^ path )
Parameters
- attributes (NSDictionary)
- A dictionary containing as keys the attributes to set for path and as values the corresponding value for the attribute. You can set following: NSFileBusy, NSFileCreationDate, NSFileExtensionHidden, NSFileGroupOwnerAccountID, NSFileGroupOwnerAccountName, NSFileHFSCreatorCode, NSFileHFSTypeCode, NSFileImmutable, NSFileModificationDate, NSFileOwnerAccountID, NSFileOwnerAccountName, NSFilePosixPermissions. You can change single attributes or any combination of attributes; you need not specify keys for all attributes.
- path (NSString)
- A path to a file or directory.
Return Value
YES if all changes succeed. If any change fails, returns NO, but it is undefined whether any changes actually occurred.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)