Custom migration on iCloud Core Data

2014-02-23 Thread Yi Lin
I'm developing an app that uses iCloud Core Data in iOS 7, I understand only lightweight migration is supported for iCloud CD, but at some point a app may need to migrate to a new model that is different enough where either custom mapping or migration policy is required. Since that migration can't

A possibly simpler way to do custom Core Data migration

2014-02-23 Thread Yi Lin
I am changing the model of my Core Data app in a big way for the next update, and custom migration is definitely needed. After reading Apple's docs on migration policy subclasses, I find it very convoluted and wondered if there is an easier way. I am thinking, why not just bring up the data in the

Having lots problem with provision profile lately...

2013-12-08 Thread Yi Lin
I'm going to clear all identities and provisioning profile from developer portal, to set things up again from scratch, would doing so affect any of the apps (Mac and iOS) that I currently have selling in the store? ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Does anyone find Restore Snapshot kind of weak?

2012-11-29 Thread Yi Lin
Wow, what a response for a simple post. I do use Git, and take advantaging of its staging abilities. But sometimes, I want to do some quick experiments and want to get back to a previous state. Kind of like undoing with Command-Z except it involves multiple files. Yes, theoretically, Git can do a

Does anyone find Restore Snapshot kind of weak?

2012-11-28 Thread Yi Lin
I have tried using Snapshot as a way to undo my project to a previous state, sort of like a powered-up version of undo, but it never works for me. When I attempt to restore to a previous snapshot, even after minor change, Xcode just crash. I am using the latest Xcode, and have tried this on at leas

Re: How to blink with a focus ring of the text box?

2011-10-06 Thread Yi Lin
Another way is to make the cursor stop at the end of the limit, and if the user keeps banging on the keyboard, show an alert message stating the character limit on the field. On Thu, Oct 6, 2011 at 8:33 AM, Nick wrote: > Hello > I am wondering if there's a way to do this, notifying the user that

Re: adding something to a setter

2011-10-06 Thread Yi Lin
It's perhaps helpful to remember that property was introduce to remove the annoyance with having to define boilerplate accessor for 90% of your properties. People are now writing 90% less accessor code, so writing one more for your case below seems tolerable. After all, it's just a few lines of cod

Re: Polymorphic relationship and migration

2009-11-30 Thread Yi Lin
crete subclasses of Shape. Yi On Nov 29, 2009, at 3:16 AM, Quincey Morris wrote: On Nov 27, 2009, at 17:14, Yi Lin wrote: For example, if I have a relationship called "shape" that refers to the Shape abstract entity, with concrete classes Triangle, Square, etc. In the mapping mod

Polymorphic relationship and migration

2009-11-29 Thread Yi Lin
Hi All, I ran into a issue where polymorphic relationship is not maintained by the automatically-generated Core Data mapping model. For example, if I have a relationship called "shape" that refers to the Shape abstract entity, with concrete classes Triangle, Square, etc. In the mapping mo