• 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: John Harte <email@hidden>
  • Date: Sat, 12 Oct 2002 23:25:47 -0400

Is somonesName equal to something? You can't store nil in an NSDictionary or an NSArray.

John

On Saturday, October 12, 2002, at 10:21 PM, Keith Pritchard wrote:

helppp? Thanks!

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.

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

  • Prev by Date: manage double click
  • Next by Date: Re: How to add an array to a dictionary.....
  • Previous by thread: How to add an array to a dictionary.....
  • Next by thread: Re: How to add an array to a dictionary.....
  • Index(es):
    • Date
    • Thread