• 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
Proper way to express relationships between classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proper way to express relationships between classes


  • Subject: Proper way to express relationships between classes
  • From: Michael Petnuch <email@hidden>
  • Date: Wed, 17 Aug 2005 13:49:34 -0400

Hello everyone:

I am writing a cocoa program that interfaces to my websites database. There are three tables in the database: topic, author, articles. There is a many to one relationship between the articles and the topic as well as the articles and the author table. I created a class that represents each of the tables and then created one global NSMutableArray to hold all the articles and two global NSMutableDictionaries to hold the topics and authors. However, I want to add a gui to this later and use bindings.
However, I don't understand how I am going to be able to keep the links between the articles table and the other two tables. I have attached the project files stripped of the database code to show you what I am trying to. Thanks for any help.


Sincerely,
Michael Petnuch


Attachment: Topic.h
Description: Binary data

Attachment: Topic.m
Description: Binary data

Attachment: testing.m
Description: Binary data

Attachment: Article.h
Description: Binary data

Attachment: Article.m
Description: Binary data

Attachment: Author.h
Description: Binary data

Attachment: Author.m
Description: Binary data


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Core Data: using array operators in a fetch spec?
  • Next by Date: Dependent Keys
  • Previous by thread: Re: Core Data: using array operators in a fetch spec?
  • Next by thread: Dependent Keys
  • Index(es):
    • Date
    • Thread