• 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: Determining whether a dictionary is mutable or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining whether a dictionary is mutable or not


  • Subject: Re: Determining whether a dictionary is mutable or not
  • From: Tito Ciuro <email@hidden>
  • Date: Sat, 15 Jan 2011 00:01:07 +0100

Thanks a lot everyone for the great feedback. I really appreciate it! :-)

Cheers,

-- Tito

On Jan 14, 2011, at 6:39 PM, Corbin Dunn wrote:

>
> On Jan 14, 2011, at 4:44 AM, Tito Ciuro wrote:
>
>> Hi Pablo,
>>
>> On Jan 14, 2011, at 1:35 PM, Pablo Pons Bordes wrote:
>>
>>> Hello,
>>>
>>> To determine if a dictionary is mutable or Inmutable you just need to use the isKindOfClass method, instead of use respondsToSelector.
>>>
>>> I did a test to reproduce your problem and couldn't reproduce your problem, so my conclusion is that actually you are receiving a mutable Dictionary when you think is unMutable
>>
>> Hm. No, I'm not getting a mutable dictionary because I'm seeing a log message complaining that I'm trying to call setObject:forKey: on an immutable object.
>
> I think you should work backwards on this one...break on NSLog and go from there....
>
> Something's mutating an dictionary that shouldn't be mutated.
>
> corbin
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Determining whether a dictionary is mutable or not
      • From: Ken Ferry <email@hidden>
References: 
 >Determining whether a dictionary is mutable or not (From: Tito Ciuro <email@hidden>)
 >Re: Determining whether a dictionary is mutable or not (From: Tito Ciuro <email@hidden>)
 >Re: Determining whether a dictionary is mutable or not (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone
  • Next by Date: Re: NSSegmentedControl Label
  • Previous by thread: Re: Determining whether a dictionary is mutable or not
  • Next by thread: Re: Determining whether a dictionary is mutable or not
  • Index(es):
    • Date
    • Thread