• 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
What, exactly constitutes a mutable action on an instance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What, exactly constitutes a mutable action on an instance?


  • Subject: What, exactly constitutes a mutable action on an instance?
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 28 May 2013 09:39:21 -0400

Though it's clearly defined in the docs when to use NSMubleAnything vs. NSAnything (insert Array, Dictionary, String, etc for Anything), there is no compiler warning when you perform a simple action such as allocate a string and then reassign values to it.

With this in mind, what exactly constitutes a mutable action?

If we take this:

NSString *myString;
myString = @"Hi";
myString = @"Hi there";

I'm clearly expecting some type of warning from the compiler when myString is redefined, but I don't see one in Xcode 4.6.1.  Is this redefinition not a mutable action?  It sure seems like it is.

Thanks in advance.
_______________________________________________

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: What, exactly constitutes a mutable action on an instance?
      • From: Jens Alfke <email@hidden>
    • Re: What, exactly constitutes a mutable action on an instance?
      • From: Thomas Wetmore <email@hidden>
    • Re: What, exactly constitutes a mutable action on an instance?
      • From: Roland King <email@hidden>
    • Re: What, exactly constitutes a mutable action on an instance?
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: Show / hide application menu / icon in dock / windows cycling / ...
  • Next by Date: Re: What, exactly constitutes a mutable action on an instance?
  • Previous by thread: Re: My App refuses to rotate
  • Next by thread: Re: What, exactly constitutes a mutable action on an instance?
  • Index(es):
    • Date
    • Thread