Re: [Newbie] Good NSDictionary example?
Re: [Newbie] Good NSDictionary example?
- Subject: Re: [Newbie] Good NSDictionary example?
- From: Ondra Cada <email@hidden>
- Date: Sun, 8 Sep 2002 02:31:24 +0200
On Sunday, September 8, 2002, at 01:05 , Andreas Mayer wrote:
Want to be able to say, for myreference="something" show me name,
subject,date ... the results of which end up in a table.
Looks like a dictionary of objects to me.
Build a class with name, subject and date properties and, create an
object for each dataset and put it in a dictionary with <something> as
key.
Or -- which seems to me as an easier way -- don't build anything, and just
make a dictionary of dictionaries, like
id manuallyCreated=[NSDictionary dictionaryWithObjectsAndKeys:
[NSDictionary dictionaryWithObjectsAndKeys:
@"Ondra",@"christian",@"Cada",@"family",[NSDate
date],@"date",nil],@"something",
[NSDictionary dictionaryWithObjectsAndKeys:
@"Andreas",@"christian",@"Mayer",@"family",@"other ID",
nil];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.