Creating Core Data data at design time

Discussion in 'Mac Programming' started by DaveP, Jun 14, 2010.

  1. DaveP macrumors 6502

    DaveP

    Joined:
    Mar 18, 2005
    #1
    So this seems like a really dumb questions, but I can't find the answer anywhere and I've never really used Core Data before. Is there any way to create Core Data data at design time or only programmatically? I don't know if it's possible to create/edit the proper persistent store file, but that seems unsafe. It's seems like there has to be a way to do this.

    Anyone know the answer?

    Thanks.

    Update: Further searching looks like it needs to be done programmatically of some sort. Can anyone verify that or have suggestions.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I don't think there is a supported way. You could of course reverse engineer the structure they use (easiest if using XML), but that's not supported.

    You probably need to write code to import a custom file into your Core Data model.
     
  3. DaveP thread starter macrumors 6502

    DaveP

    Joined:
    Mar 18, 2005
    #3
    Thanks, yeah that's what thought. I was sort of looking for an excuse to use CoreData. I'll continue using a plist.
     

Share This Page