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 (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