Re: migrating CoreData data model doesn't work

2010-05-21 Thread Gustavo Pizano
Rainer hello.

Have you created once again the ManagedObjects from the model?.. If so and you 
didn't remove the old ones, Xcode will start complaining A LOT (don't ask me 
why but it happened to me when I did it), then I realize I had to delete the 
old MO .m and .h files and generate again form the new model version. Now if 
you have custom methods in your MO's then what I do is that I don't delete, or 
create a new one, but simply add by had the new(s) attributes I set in the new 
model version. Im pretty sure there i another way to do this, better one, but 
this is what I do. But generally before creating the MO's Im make sure the 
model its normalized as much as I can, and in a consistent representation.

Now other thing to check is if you set the new model version as the current one.

Also, I think when changing things in the model you have to create a 
modelmapping file, this is done after making the changes in the new model 
version,  new file resources, mappingmodel, call it whatever, then select the 
sources and the destination models, ..

I hope this helps.

Im not expert tough, but if this helps you Im glad.

Gustavo
 


On 21.5.2010, at 1:25, Rainer Standke wrote:

 Hello,
 
 when I select my data model in the xcode project, and then select Design/Data 
 Model/Add Model Version I do get a new bundle in Xcode project, but now copy 
 of the existing datamodel. The bundle, both in Xcode and on the Finder level, 
 is empty. The app does not compile any more.
 
 The only thing that might be unusual in this project - as far as I can tell - 
 is that I have iVars in the ManagedObject classes that calculate some things 
 on the fly, based on regular attributes. Could this be a reason for trouble?
 
 I have no idea why this is going wrong, and would appreciate some help, 
 greatly.
 
 Thanks,
 
 Rainer___
 
 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:
 http://lists.apple.com/mailman/options/cocoa-dev/gustavxcodepicora%40gmail.com
 
 This email sent to gustavxcodepic...@gmail.com

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: migrating CoreData data model doesn't work

2010-05-21 Thread Hal Mueller
MOGenerator (from Wolf Rentzsch) is one solution to this problem. It uses one 
file for human-written custom code, another file for machine-generated 
boilerplate code.

http://github.com/rentzsch/mogenerator

Hal

On May 21, 2010, at 4:53 AM, Gustavo Pizano wrote:

 Now if you have custom methods in your MO's then what I do is that I don't 
 delete, or create a new one, but simply add by had the new(s) attributes I 
 set in the new model version. Im pretty sure there i another way to do this,

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: migrating CoreData data model doesn't work

2010-05-21 Thread Gustavo Pizano
Hehee,, it makes me remember EOVelocity .. or the Wonder generators from 
WebObjects

On 21.5.2010, at 20:54, Hal Mueller wrote:

 MOGenerator (from Wolf Rentzsch) is one solution to this problem. It uses one 
 file for human-written custom code, another file for machine-generated 
 boilerplate code.
 
 http://github.com/rentzsch/mogenerator
 
 Hal
 
 On May 21, 2010, at 4:53 AM, Gustavo Pizano wrote:
 
 Now if you have custom methods in your MO's then what I do is that I don't 
 delete, or create a new one, but simply add by had the new(s) attributes I 
 set in the new model version. Im pretty sure there i another way to do this,
 

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


migrating CoreData data model doesn't work

2010-05-20 Thread Rainer Standke
Hello,

when I select my data model in the xcode project, and then select Design/Data 
Model/Add Model Version I do get a new bundle in Xcode project, but now copy of 
the existing datamodel. The bundle, both in Xcode and on the Finder level, is 
empty. The app does not compile any more.

The only thing that might be unusual in this project - as far as I can tell - 
is that I have iVars in the ManagedObject classes that calculate some things on 
the fly, based on regular attributes. Could this be a reason for trouble?

I have no idea why this is going wrong, and would appreciate some help, greatly.

Thanks,

Rainer___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com