• 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: How to recognize mutability?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to recognize mutability?


  • Subject: Re: How to recognize mutability?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 20 Feb 2013 20:15:42 -0800

On Feb 20, 2013, at 12:10 AM, Gerriet M. Denkmann <email@hidden> wrote:

> But I do not know how to recognise mutability.
>
> 1. use isKindOfClass: [NSMutableString class]
> 	disadvantage: all strings turn out to be mutable

This is somewhat of an FAQ. There is no way to do this (without groping inside private data structures.)

In practice, all NSStrings are instances of a few CF-implemented string classes that support both mutable and immutable strings. These internal classes implement the API of both NSString and NSMutableString.

I think you’ve posted about this stuff before? It really sounds like you’re on a wild goose chase down a rathole, with this archiving project. I suggest you back up a ways and look at the problem from a high level and find a different way to solve it.

—Jens
_______________________________________________

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: How to recognize mutability?
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >How to recognize mutability? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: NSTask arguments
  • Next by Date: Re: NSTask arguments
  • Previous by thread: Re: How to recognize mutability?
  • Next by thread: Re: How to recognize mutability?
  • Index(es):
    • Date
    • Thread