Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
- Subject: Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
- From: Ryan Britton <email@hidden>
- Date: Fri, 10 Mar 2006 16:59:55 -0800
I have this same problem. I generate a list of display names in my
app, so it actually dumps a large number of them. Rebuilding the
launch services database on my computer fixed a lot of them, but
there are still some. From what I can tell, they do not impact code
functionality at all though.
On Mar 10, 2006, at 4:54 PM, Kaelin Colclasure wrote:
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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