On 21 Feb 2013, at 11:15, Jens Alfke <j...@mooseyard.com> wrote:

> 
> On Feb 20, 2013, at 12:10 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> 
> 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.)

Well, turns out there is a way. As Ronald Oussoren kindly pointed out yesterday:

        BOOL isMutable = [ someString classForKeyedArchiver ] == [ 
NSMutableString class ];

does exactly what I needed.

> I think you’ve posted about this stuff before?
Probably. But never got this really clever answer of classForKeyedArchiver.

> It really sounds like you’re on a wild goose chase down a rathole, with this 
> archiving project.
Well, it is not going too badly. My Archiver has keyed archiving and produces 
output comparable to NSArchiver (much smaller than NSKeyedArchiver) and can be 
used on iOS (unlike NSArchiver).
It is not yet optimised (polite way to say: it is quite slow).

> I suggest you back up a ways and look at the problem from a high level and 
> find a different way to solve it.
I will have a look at JSON.

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to