FROM : Hamish Allan
DATE : Wed Mar 26 19:11:41 2008
On Wed, Mar 26, 2008 at 4:07 PM, <<email_removed>> wrote:
> Now i tried to go one step further for what I need to accomplish,
> instead of saving 2 levels (the key and the corresponding object) I
> want to save 3 levels (Key, object and another object linked to the
> first object).
It's not quite clear what you mean by "linked to". Do you mean you
want to use two keys to arrive at each object? If so, the objects of
your first dictionary should themselves be dictionaries:
{ key => { key => object, key => object } , key => { key => object,
key => object } }
Or the keys could be arrays:
{ [key, key] => object, [key, key] => object }
Or perhaps you mean you want each key to yield two objects? In which
case, the objects of your dictionary should be arrays:
{ key1 => [object2, object3], key4 => [object5, object6] }
Hamish
DATE : Wed Mar 26 19:11:41 2008
On Wed, Mar 26, 2008 at 4:07 PM, <<email_removed>> wrote:
> Now i tried to go one step further for what I need to accomplish,
> instead of saving 2 levels (the key and the corresponding object) I
> want to save 3 levels (Key, object and another object linked to the
> first object).
It's not quite clear what you mean by "linked to". Do you mean you
want to use two keys to arrive at each object? If so, the objects of
your first dictionary should themselves be dictionaries:
{ key => { key => object, key => object } , key => { key => object,
key => object } }
Or the keys could be arrays:
{ [key, key] => object, [key, key] => object }
Or perhaps you mean you want each key to yield two objects? In which
case, the objects of your dictionary should be arrays:
{ key1 => [object2, object3], key4 => [object5, object6] }
Hamish
| Related mails | Author | Date |
|---|---|---|
| nutrition1 | Mar 26, 17:07 | |
| Christiaan Hofman | Mar 26, 19:03 | |
| Hamish Allan | Mar 26, 19:11 | |
| Andreas Mayer | Mar 26, 19:14 |






Cocoa mail archive

