Problem adding UserInfo entry with structured value to CoreData attribute
Problem adding UserInfo entry with structured value to CoreData attribute
- Subject: Problem adding UserInfo entry with structured value to CoreData attribute
- From: Martin Redington <email@hidden>
- Date: Tue, 24 Sep 2013 22:05:22 +0100
I'm having a real struggle adding a new attribute with UserInfo
entries to an existing CoreData entity.
I've created a new model version, and set it as the default.
All of the existing attributes have the following userInfo entries.
com.apple.syncservices.ExcludeFromDataChangeAlert
which is set to NO
com.apple.syncservices.AutomaticResolutionPolicy
which is set to
{
PreferredClientType = app;
PreferredRecord = Truth;
}
When I try and add a new attribute, and set these two userInfo
entries, momc dies with the following error:
'-[__NSCFString objectForKey:]: unrecognized selector sent to instance
0x7fbfd164f530'
If I delete the com.apple.syncservices.AutomaticResolutionPolicy value
from an existing attribute, and paste the value back in, I get the
same error.
Looking at the underlying elements file (exporting it to an XML plist
first), it looks like the
com.apple.syncservices.AutomaticResolutionPolicy entries are
represented as dictionaries for the existing entries, but as strings
for the new one, or one that I edit.
I suspect that this is why momc is dying with
'-[__NSCFString objectForKey:]: unrecognized selector sent to instance
0x7fbfd164f530'
Is there something special that I need to do to add the UserInfo
entries with dictionary values? Copy and paste from existing entries
doesn't work for me :-(
--
http://www.mildmanneredindustries.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden