NSFileManager not preserving Spotlight comments
NSFileManager not preserving Spotlight comments
- Subject: NSFileManager not preserving Spotlight comments
- From: email@hidden
- Date: Mon, 3 Apr 2006 20:39:05 +0200
Hi,
My application uses the following methods to copy files and their
attributes. It seems, however, that the Spotlight comments (as can be
seen in the Finder's Get Info panel) are not copied by these API calls.
I'm using the following code:
if ([manager copyPath:sPath toPath:dPath handler:self]) {
[manager changeFileAttributes:[manager
fileAttributesAtPath:sPath traverseLink:YES] atPath:dPath];
}
else {
// other code
}
Is there a Cocoa method to copy files while preserving Spotlight
comments? If not, what would be the best approach to do this?
Thanks in advance!
peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden