Re: NSFileWrapper serializedRepresentation
Re: NSFileWrapper serializedRepresentation
- Subject: Re: NSFileWrapper serializedRepresentation
- From: Graham Cox <email@hidden>
- Date: Tue, 05 Apr 2016 11:40:07 +1000
> On 5 Apr 2016, at 11:30 AM, Gerriet M. Denkmann <email@hidden> wrote:
>
>
>> On 5 Apr 2016, at 08:17, Graham Cox <email@hidden> wrote:
>>
>>> On 5 Apr 2016, at 10:41 AM, Gerriet M. Denkmann <email@hidden> wrote:
>>>
>>> What are the alternatives?
>>
>> file paths or NSURL?
>
> Not really. If I send file paths or NSURLs (pointing to files on OS X) to my iOS Devices, these would not be very useful.
> I really need to send the data.
Fair enough, I had only skimmed the earlier posts, I hadn’t really grokked what you’re trying to do.
Sounds like the NSFileWrapper serialization is fine here, those methods are not deprecated (though the pasteboard type it was used for may well be). For private data transfer it seems like a fair solution.
The discrepancies in data sizes between iOS and OSX appear to be irrelevant - it probably represents optional data that is discarded when going from OS X -> iOS and not created going the other way.
—Graham
_______________________________________________
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