• 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: Prachi Gauriar <email@hidden>
  • Date: Fri, 14 Jan 2005 13:22:43 -0500


On Jan 14, 2005, at 12:22 PM, Shawn Erickson wrote:

The problem is that the setting of this flag isn't cleanly or easily exposed by the traditions methods like isKindOf, respondsToSelector, etc. at this time. Apple could address this in various ways with various levels of potential backwards compatibility issues (depending on quirks / assumptions in existing code). It may be best to provide a universal isMutable method on NSObject (or course that has backwards compatibility issues with any one that has added such a method via a category ect.) that can be used to understand in one shot if an object is or isn't mutable.

It seems to me that they should just override isKindOf:, respondsToSelector:, etc. in NSCFDictionary to take the flag into consideration. At some point, backwards compatibility is going to have to be given up so that these methods behave as documented. We shouldn't have to know about the internal implementation of NSDictionary... they should just modify the internals so that the standard inspection methods behave normally.


Just my 2 cents.

-Prachi

_______________________________________________
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: glenn andreas <email@hidden>
References: 
 >Re: Know about Mutability (From: James Bucanek <email@hidden>)
 >Re: Know about Mutability (From: mmalcolm crawford <email@hidden>)
 >Re: Know about Mutability (From: Andrew Pinski <email@hidden>)
 >Re: Know about Mutability (From: mmalcolm crawford <email@hidden>)
 >Re: Know about Mutability (From: Hugh Hoover <email@hidden>)
 >Re: Know about Mutability (From: Peter Maurer <email@hidden>)
 >Re: Know about Mutability (From: Paul Sargent <email@hidden>)
 >Re: Know about Mutability (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Convert String into Expression
  • Next by Date: Re: Adding an undo method in textView:shouldChangeTextInRange:...
  • Previous by thread: Re: Know about Mutability
  • Next by thread: Re: Know about Mutability
  • Index(es):
    • Date
    • Thread