Re: archiving report
Re: archiving report
- Subject: Re: archiving report
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 27 Feb 2013 12:30:24 +0700
On 27 Feb 2013, at 02:17, Kyle Sluder <email@hidden> wrote:
> On Tue, Feb 26, 2013, at 11:06 AM, Gerriet M. Denkmann wrote:
>> You can create and archive (with NSKeyedArchiver) illegal strings.
>> unichar u = kUCHighSurrogateRangeStart;
>> NSString *s = [ NSString stringWithCharacters: &u length: 1];
>
> You might be able to do it now, but you certainly can't rely on it in
> the future.
I am not advocating using illegal strings. For one: there is no way of knowing which string operations might work or not.
The point is: if NSString can create something, it should be archivable.
But I admit that this is a very minor and unimportant bug.
The best fix by far would be if NSString does not allow to create nonsense strings at all.
Kind regards,
Gerriet.
_______________________________________________
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