On 27 Feb 2013, at 02:17, Kyle Sluder <k...@ksluder.com> 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 (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