• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to add an array to a dictionary.....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to add an array to a dictionary..... (From: Keith Pritchard <email@hidden>)

  • Prev by Date: Re: NSUnbufferedIO
  • Next by Date: Re: New..Which book?
  • Previous by thread: Re: How to add an array to a dictionary.....
  • Next by thread: Re: How to add an array to a dictionary.....
  • Index(es):
    • Date
    • Thread