NSPredicate: Using NSExpression CAST(x, 'Class') is deprecated and will be removed in a future release
NSPredicate: Using NSExpression CAST(x, 'Class') is deprecated and will be removed in a future release
- Subject: NSPredicate: Using NSExpression CAST(x, 'Class') is deprecated and will be removed in a future release
- From: Sean McBride via Cocoa-dev <email@hidden>
- Date: Thu, 18 Nov 2021 19:44:21 -0500
Hi all,
Starting in Monterey, I see a new message logged by Core Data during persistent
store migration:
NSPredicate: Using NSExpression CAST(x,'Class') is deprecated and will be
removed in a future release. 'MyClassName' should not be cast into a Class
object.'
This is due to my .xcmapping model where I set an attribute mapping to:
FUNCTION(CAST("MyClassName", "Class"), "myMethodName:",
$source.myOldAttributeName)
If this isn't correct, how can I invoke a custom method to transform an old
attribute into something new?
Thanks,
Sean
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden