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

RE: CoreData models as structures


  • Subject: RE: CoreData models as structures
  • From: Jim Adams <email@hidden>
  • Date: Fri, 5 Nov 2010 22:57:14 +0000
  • Thread-topic: CoreData models as structures

I have found that it means I have to include the header file for the inner instance.

-----Original Message-----
From: cocoa-dev-bounces+jim.adams=email@hidden [mailto:cocoa-dev-bounces+jim.adams=email@hidden] On Behalf Of Ayers, Joseph
Sent: Friday, November 05, 2010 6:13 PM
To: Cocoa Dev
Subject: 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

_______________________________________________

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

References: 
 >CoreData models as structures (From: "Ayers, Joseph" <email@hidden>)

  • Prev by Date: Re: Programmatic Toolbar Blinking
  • Next by Date: Re: Programmatic Toolbar Blinking
  • Previous by thread: CoreData models as structures
  • Next by thread: Re: CoreData models as structures
  • Index(es):
    • Date
    • Thread