Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to store CLPlacemark address data in Core Data

I've been thinking what's the best way to store CLPlacemark data (e.g. Thoroughfare, Locality, Country etc.). There is quite a number of them and I'm currently storing them individually as strings in Core Data but it is quite cumbersome.

Perhaps I should instead store as transformable CLPlacemark instead? Any other way to efficiently and quickly store a whole bunch of key-value pairs?

like image 392
redshift5 Avatar asked Oct 20 '12 02:10

redshift5


1 Answers

I ended up storing CLPlacemark as a transformable type in Core Data. Saved a lot of headache doing it this way, and since CLPlacemark is NSCoding compatible no transformer is required, very easy.

like image 169
redshift5 Avatar answered Sep 18 '22 18:09

redshift5