• 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: core data structure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data structure?


  • Subject: Re: core data structure?
  • From: "Luca C." <email@hidden>
  • Date: Thu, 9 Sep 2010 14:35:38 +0200

When you say a product can link to more than one order, then I assume you
use an array to store the orders.
Why not just creating an array of dictionaries, where in each dictionary you
set the order, the number of products,
and possibly other information. This way when you want to know how many
products are in an order, just go serch for
your order in the array of dictionaries and get it. This is just to clarify
that you haven't to search for strange things.
This is not performant - it's just to help you figure it out.
--
Luca C.
_______________________________________________

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

  • Prev by Date: How to debug this?
  • Next by Date: Phone lock/Apple sounds
  • Previous by thread: Re: core data structure?
  • Next by thread: Question about architecture
  • Index(es):
    • Date
    • Thread