• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [CodeData] Generic model migration code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CodeData] Generic model migration code?


  • Subject: Re: [CodeData] Generic model migration code?
  • From: Kaspar Fischer <email@hidden>
  • Date: Fri, 8 Sep 2006 17:01:20 +0200

On Sep 8, 2006, at 1:52 PM, Jakob Olesen wrote:

I don't have any code for you, sorry. I have thought about the problem, though, and I think it is difficult (not impossible) to write *generic* code. If the data is too big to fit in memory, you have to do intermediate saves without breaking validation. Tricky. User-defined setters and validators could also cause problems.

You are right. We need to add another assumption: that the data fits into the model. Otherwise it is going to get complicated.

As to your method of adding a binary "reserved" attribute.
I have done similar things but am not so happy with it
when I need relations, etc. (as you pointed out, too).

Thanks for the observations.

Kaspar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[CodeData] Generic model migration code? (From: Kaspar Fischer <email@hidden>)
 >Re: [CodeData] Generic model migration code? (From: Jakob Olesen <email@hidden>)

  • Prev by Date: Re: Adding background color to NSmenuItem
  • Next by Date: Re: Unable to parse xml
  • Previous by thread: Re: [CodeData] Generic model migration code?
  • Next by thread: Re: [CodeData] Generic model migration code?
  • Index(es):
    • Date
    • Thread