On Apr 7, 2015, at 02:21 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
> 
> it allowed me to create a replacement for characterSetWithCharactersInString: 
> which actually works

The only suggestion I have is to return ‘mus.copy’ instead of ‘mus’.

Given that we know NSCharacterSet has some optimized internal representations, 
it’s possible that NSMutableCharacterSet doesn’t use them, since there’s no 
point until you’re “finished” mutating. If you’re using a wide range of UTF-32 
values, the mutable object might be quite large, and taking a immutable copy 
might produce a very much smaller object.

Or not.



_______________________________________________

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