0

Please correct me if I am wrong.

If we use fast enumeration:

NSMutableDictionary

We can't add/remove new entries, but we could change existing entries.

NSMutableArray

We can't add/remove new entries, but we could change existing entries.

NSMutableSet

We can't add/remove new entries or change existing entries.

Mr.Wizard
  • 24,179
  • 5
  • 44
  • 125
Voloda2
  • 12,359
  • 18
  • 80
  • 130

1 Answers1

0

NSDictionary, NSArray or NSSet are finally non mutable object these can never be changed. You can change the object in these classes.

When using fast enumeration, or any type of enumeration you should always watch out when change the collect/array because the count change and can have weird and unintended results.

rckoenes
  • 69,092
  • 8
  • 134
  • 166