Le 4 déc. 2009 à 15:57, Luther Fuller a écrit :
I have also noticed that while a file without a comment should have
kMDItemFinderComment = ""
in the metadata,
Who told you that it must behave this way ?
In many preferences plists, fields doesn't exist as long as they aren't defined once.
If we defined them once and set them to nil after that, the field continue to exist.
Just one example :
in com.apple.iWork.Pages.plist, by default, the field "FormatXML" doesn't exist .
As I want that linebreaks are inserted to make the xml files more legible, I define the field as a string whose value is "Yes".
If I decide to disable the feature, I have two choices:
(1) set the field value to "No"
(2) remove completely the field.
it actually has metadata that lacks the kMDItemFinderComment parameter.
This parameter only appears when you write a comment (set comment of fileAlias to ...).
From my point of view it's the normal behavior.