• 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: Know about Mutability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Know about Mutability


  • Subject: Re: Know about Mutability
  • From: James Bucanek <email@hidden>
  • Date: Thu, 13 Jan 2005 21:27:19 -0700

Gerriet M. Denkmann wrote on Friday, January 14, 2005:

>But how do I know whether myDict is mutable or not?
>Actually myDict seems to be a NSCFDictionary (NSObject -> NSDictionary
>-> NSCFDictionary -> NSMutableDictionary -> %NSCFDictionary ->
>NSCFDictionary)

What's wrong with

    if ([myDict isKindOfClass:[NSMutableDictionary class]])
        ...

?

If it's an NSMutableDictionary, and it implements the methods in the NSMutableDictionary implementaion, then it has to be a subclass of NSMutableDictionary -- right?

--
James Bucanek <mailto:email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Know about Mutability
      • From: mmalcolm crawford <email@hidden>
References: 
 >Know about Mutability (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Anyone got SSL over NSStreams to work?
  • Next by Date: Re: Detect Safari Version
  • Previous by thread: Re: Know about Mutability
  • Next by thread: Re: Know about Mutability
  • Index(es):
    • Date
    • Thread