• 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: Evan Schoenberg <email@hidden>
  • Date: Fri, 14 Jan 2005 02:54:22 -0600


On Jan 14, 2005, at 1:05 AM, Hugh Hoover wrote:

I'm confused about why respondsToSelector: isn't working correctly... Either the object will handle the selector (and respondsToSelector: returns true) or it doesn't and respondsTo returns false?

Note that when you send the setObject:forKey: selector to it, it responds with an exception that a mutating method was sent to an immutable object. To be posting such a specialized exception, it must be handling the selector and taking action... it's not responding in the way you would like, but it -is- responding.


-Evan

_______________________________________________
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


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>)

  • Prev by Date: [SOLVED] Re: continuing after fork() (Re: Problems with NSTimer and NSRunLoop/CFRunLoop)
  • Next by Date: Semi-OT: WebCore > decodeData:, no longer working?
  • Previous by thread: Re: Know about Mutability
  • Next by thread: editing NSCell
  • Index(es):
    • Date
    • Thread