• 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
Accessing objects two ways in an object hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing objects two ways in an object hierarchy


  • Subject: Accessing objects two ways in an object hierarchy
  • From: Per Ohlson <email@hidden>
  • Date: Mon, 5 Jan 2009 09:15:12 +0100

I have a relationship similar to the following model in my program:

http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Art/object_graph.gif

To access the objects corresponding to the collection of "employees" from the "department", I just iterate through the collection and fetch the object.
But what is the best way to access the "department" from an "employee"?
_______________________________________________


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: Accessing objects two ways in an object hierarchy
      • From: Graham Cox <email@hidden>
  • Prev by Date: Enum advice please
  • Next by Date: Enum advice please (resend not sure if it was delivered ?)
  • Previous by thread: Re: Enum advice please
  • Next by thread: Re: Accessing objects two ways in an object hierarchy
  • Index(es):
    • Date
    • Thread