Core Data - Best way to save a "number of items"

Posted by Daniel Granger on Stack Overflow See other posts from Stack Overflow or by Daniel Granger
Published on 2010-04-25T16:01:43Z Indexed on 2010/04/25 16:03 UTC
Read the original article Hit count: 172

Filed under:
|
|

The user will have a static list of items to choose from. Using a Picker View they will choose one of the items and then select how many of them they want.

Whats the best way to save this in core data? A Struct?

struct order {
    NSInteger item;
    NSInteger numberOf;
};

Or some sort of relationship?

Many Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk