Re: UIColor in CoreData database into NSColor
Re: UIColor in CoreData database into NSColor
- Subject: Re: UIColor in CoreData database into NSColor
- From: Georg Seifert <email@hidden>
- Date: Fri, 20 Feb 2015 23:20:17 +0100
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 <email@hidden> 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 <email@hidden> 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 (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