Re: How to add an array to a dictionary.....
Re: How to add an array to a dictionary.....
- Subject: Re: How to add an array to a dictionary.....
- From: email@hidden
- Date: Sun, 13 Oct 2002 02:26:28 -0400
The list of objects and keys needs to be nil terminated:
[thread addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:
somonesName,@"name",
(NSMutableArray *)nextArticle=[[NSMutableArray
alloc]init],@"children",nil],
nil ];
On Saturday, Oct 12, 2002, at 22:21 America/New_York, Keith Pritchard
wrote:
NSMutableArray *thread;
thread=[[NSMutableArray alloc] initWithCapacity:0];
[thread addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:
somonesName,@"name",
(NSMutableArray *)nextArticle=[[NSMutableArray
alloc]init],@"children",nil] ];
_______________________________________________
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.
_______________________________________________
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.