• 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
CoreData models as structures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData models as structures


  • Subject: CoreData models as structures
  • From: "Ayers, Joseph" <email@hidden>
  • Date: Fri, 5 Nov 2010 18:13:22 -0400
  • Acceptlanguage: en-US
  • Thread-topic: CoreData models as structures

I have a core data model that has a series of to-many relationships of the type:

@interface TapeList :  NSManagedObject
{
    NSString * ListURL;
    NSSet* tapes;
}

@interface tapes :  NSManagedObject
{
    NSString * Notes;
    NSString * TapeName;
    NSSet    * VideoClip;
}

@interface VideoClip :  NSManagedObject
{
    NSString * StartTimeCode;
    QTMovie * mMovie;
    NSString * EndTimeCode;
    NSString * Notes;
    NSString * movieURL;
    tapes * CurrentTape;
    NSSet* Table;
}

@interface Table :  NSManagedObject
{
    NSString * Notes;
    NSString * Name;
    NSSet* CommandStates;
    NSSet* Flexions;
    NSSet* DataSources;
}

A reference to tapeList.tapes works fine, but a reference to tapeList.tapes.VideoClip gives me a
"request for member "VideoClip in something not a structure or union" compile time error.

The structure is pretty obvious from the model
see:
http://dl.dropbox.com/u/2415080/datamodel.pdf

 but I'm baffled where it should reside in the code.

Thanks,

Joseph Ayers, Professor
Department of Biology and
Marine Science Center
Northeastern University
East Point, Nahant, MA 01908
Phone (781) 581-7370 x309(office), x335(lab)
Boston: 444 Richards Hall (617) 373-4044
Cellular (617) 755-7523, FAX: (781) 581-6076
Google Voice: (781) 346-9589
eMail: email@hidden<mailto:email@hidden>
iPhone: email@hidden<mailto:email@hidden>
http://www.neurotechnology.neu.edu/
http://robobees.seas.harvard.edu/
http://cyberplasm.net/











_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CoreData models as structures
      • From: Quincey Morris <email@hidden>
    • RE: CoreData models as structures
      • From: Jim Adams <email@hidden>
  • Prev by Date: Programmatic Toolbar Blinking
  • Next by Date: Re: [Q} Changing help key behavior
  • Previous by thread: Re: Programmatic Toolbar Blinking
  • Next by thread: RE: CoreData models as structures
  • Index(es):
    • Date
    • Thread