That would only work it UIColor and NSColor would encode themselves in exactly the same way. Any guess what, they aren’t.
Georg On 20 Feb 2015, at 22:53, Alex Zavatone <z...@mac.com> wrote: > Would it be correct to not care about UIColor or NSColor, encode the data to > be stored in 64 bit NSData, store that and when accessed, decode it? > > Sent from my iPad. Please pardon typos. > > On Feb 20, 2015, at 2:15 PM, Alex Kac <a...@webis.net> wrote: > >> We have a CoreData database on iOS that we want our users to be able to >> restore in our OS X app from backups. It uses UIColor while our desktop app >> uses NSColor for now. The correct method for us is to save our color info in >> a non-platform specific way…but people have database backups where its going >> to stay a UIColor - its a backup and we can’t go and change those. >> >> So with that in mind, has anyone tackled a conversion process of reading in >> UIColor data into NSColor via CoreData? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com