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=sas....@lists.apple.com 
[mailto:cocoa-dev-bounces+jim.adams=sas....@lists.apple.com] 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: lobs...@neu.edu<mailto:lobs...@neu.edu>
iPhone: robopl...@gmail.com<mailto:robopl...@gmail.com>
http://www.neurotechnology.neu.edu/
http://robobees.seas.harvard.edu/
http://cyberplasm.net/











_______________________________________________

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/jim.adams%40sas.com

This email sent to jim.ad...@sas.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

Reply via email to