Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
- Subject: Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
- From: Kaelin Colclasure <email@hidden>
- Date: Fri, 10 Mar 2006 16:54:06 -0800
On Mar 10, 2006, at 4:16 PM, Pierre Bernard wrote:
Hi!
All of a sudden my application started printing the following error
message:
2006-03-11 01:13:07.473 HoudahSpot[8542] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is
not proper UTF-8. The file name for this data could be:
/Users/pierre/Development/build/Debug/HoudahSpot.app/Contents/
Resources/MyDocument.mom
The parser will retry as in 10.2, but the problem should be
corrected in the plist.
Now the culprit can not be the MyDocument.mom file. That one is
generated by xCode at compile time.
After some debugging I narrowed the problem down to the following
line in my code:
NSString *name = (NSString*) MDSchemaCopyDisplayNameForAttribute
((CFStringRef) key);
The error is printed the first time this is called.
Now that I can make no sense of. I take it this reads some
localized PLIST somewhere deep within the system. That would not
have changed in ages.
The plist in question would have come from an importer bundle... You
might try watching fs_usage while you reproduce the error to narrow
down which bundle.
HTH,
-- Kaelin
_______________________________________________
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