Resolved NSDictionary questions

Discussion in 'iOS Programming' started by multinode, Jun 14, 2011.

  1. multinode, Jun 14, 2011
    Last edited: Jun 14, 2011

    multinode macrumors regular

    Joined:
    Feb 4, 2011
    #1
    I can't find any way to add a key value pair to an NSDictionary. And I can't find any way to remove a given key value pair from an NSDictionary. What am I missing please?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    NSDictionary is an immutable class. If you want to change the contents use a NSMutableDictionary.
     
  3. multinode thread starter macrumors regular

    Joined:
    Feb 4, 2011
    #3
    How stupid ... of course ... :eek:

    Thanx Robbie.


     

Share This Page