On Apr 21, 2009, at 8:04 AM, Chris Idou wrote:

I've got a program which uses MDItemCopyAttribute to get the kMDItemFinderComment, and I was playing around testing it, by changing the value in the Finder and seeing if the value changed in my program, and they ended up out of synch. It ends up that mdls returns a different value than xattr -l, and MDItemCopyAttribute doesn't return the up to date value. Now that its out of synch, updating the value in Finder doesn't get it back in synch.

Is this expected behavior? Should I be using something other than MDItemCopyAttribute to get the most up to date value?

You should be sending an Apple event to the Finder:

<http://www.cocoabuilder.com/archive/message/cocoa/2009/3/23/232927>

--Michael


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to