Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hello everyone,

It seems that we can simply use plist to get the decoding done...and since
we don't need encoding on the remote end, the problem was solved with this
one-liner:

[NSPropertyListSerialization propertyListWithData:[plist dataUsingEncoding:
NSASCIIStringEncoding] options:0 format:NULL error:NULL];

Not sure if that's really safe to use but I've just done some tests and it
works pretty well. If anyone of you have used this method please let me
know. For now I've wrapped that into NSData as a category.

Will post a screenshot on my blog shortly. Now once server-end starts the
slides show, we got a preview image and lecturer's notes on the remote end
:P

Cheers!

Siqi


2013/6/11 Siqi Liu <me@siqi.fr>

Hello all,

Thanks for your help, it's great to have many helping hands here :)

I think I would write my own implementation since it doesn't seem to be
really complicated... I will not create a separate utility class but
instead add it to a category for NSData. I will test that today and let you
know what I get there.

All the best!

Siqi



2013/6/10 Cedric Bosdonnat <cbosdonnat@suse.com>

On Mon, 2013-06-10 at 11:21 +0300, Tor Lillqvist wrote:
I don't think we want to drag in boost in an otherwise clean
Objective-C -only app. (Cédric's code at least includes a boost
header, too.)

Just pay attention with my code: I wanted it to work on streams when I
don't have the full content to encode.

The boost header used in that file is not used by the EncodedData class
actually doing the base64 encode/decode work. Note that Base64 isn't
that complex, you can even write one in objective-C pretty quickly.

--
Cedric

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice




--
--------

Cordialement,
Siqi LIU

Étudiant Ingérieur, Université de Technologie de Compiègne
Vice-Président de l'association robotique UTCoupe
Responsable d'atelier de ClubChine

------
  Tel. +33 7 61 16 95 83
  email: me@siqi.fr
------




-- 
--------

Cordialement,
Siqi LIU

Étudiant Ingérieur, Université de Technologie de Compiègne
Vice-Président de l'association robotique UTCoupe
Responsable d'atelier de ClubChine

------
  Tel. +33 7 61 16 95 83
  email: me@siqi.fr
------

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.