• 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: NSMutableArray with NSMutableDictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray with NSMutableDictionaries


  • Subject: Re: NSMutableArray with NSMutableDictionaries
  • From: john <email@hidden>
  • Date: Sat, 28 May 2005 17:47:32 -0400

Or even just:

[[myArray objectAtIndex: 37] setObject: @"my value" forKey: @"my key"];

:) Though less efficient if you're making many calls to the dictionary.

-- John


Same way you'd access any other element of an NSArray:


// Get a reference to the dictionary.
NSMutableDictionary *dict = [myArray objectAtIndex:37];

// Update it.
[dict setObject:@"my value" forKey:@"my key"];



--Andy
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSMutableArray with NSMutableDictionaries (From: Jerry Brace <email@hidden>)
 >Re: NSMutableArray with NSMutableDictionaries (From: Andy Lee <email@hidden>)

  • Prev by Date: Efficient use of NSOutlineview
  • Next by Date: Core Data and Java - anyone?
  • Previous by thread: Re: NSMutableArray with NSMutableDictionaries
  • Next by thread: Efficient use of NSOutlineview
  • Index(es):
    • Date
    • Thread