Re: Pasteboards and NSSecureCoding
Re: Pasteboards and NSSecureCoding
- Subject: Re: Pasteboards and NSSecureCoding
- From: Jeremy Hughes <email@hidden>
- Date: Wed, 20 Dec 2017 02:32:41 +0000
> On 20 Dec 2017, at 02:22, Jeremy Hughes <email@hidden> wrote:
>
> What I don’t like about [NSArray.self] is that it’s an artefact of bridging.
> I’m not actually using it in the encoder:
>
> coder.encode(arrayOfInts, forKey: kArrayKey)
The declaration:
encode(_ object: Any?, forKey key: String)
seems to indicate that it encodes any object
But maybe it’s safe to assume that NSCoder will always encode/decode arrays as
NSArrays, until it gets replaced with a Swift “Coder” class.
Jeremy
_______________________________________________
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