GithubHelp home page GithubHelp logo

Comments (7)

pixelglow avatar pixelglow commented on August 19, 2024

We currently don't report progress, as zipzap is a synchronous API. It doesn't use threads or other asynchronous methods beneath the surface, and all work is done when the call returns. This generally makes it easier to reason about.

That being said, the API will work from a different, non-UI thread provided the objects are created and used in that thread. Thus it does make sense to implement a progress callback -- did you only want a callback for -[ZZMutableArchive updateEntries:error:]? Can you limit this to iOS 7 or OS X 10.9 and later, I can use NSProgress then?

from zipzap.

xmkevinchen avatar xmkevinchen commented on August 19, 2024

I canโ€™t limit the usage only for iOS 7 and OS X 10.9 now,

Do you have a plan that make thing done?

Best Regards,

Kevin Chen

On Apr 4, 2014, at 1:56 PM, Glen Low [email protected] wrote:

We currently don't report progress, as zipzap is a synchronous API. It doesn't use threads or other asynchronous methods beneath the surface, and all work is done when the call returns.

That being said, the API will work from a different, non-UI thread provided the objects are created and used in that thread. Thus it does make sense to implement a progress callback -- did you only want a callback for -[ZZMutableArchive updateEntries:error:]? Can you limit this to iOS 7 or OS X 10.9 and later, I can use NSProgress then?

โ€”
Reply to this email directly or view it on GitHub.

from zipzap.

pixelglow avatar pixelglow commented on August 19, 2024

I had a good look at NSProgress and since the API is so compelling and likely to be well-supported by Apple and third parties going forward, it is likely we will use that API instead of any custom callback scheme. Thus the official client will offer progress callback via NSProgress when built for iOS 7 and OS X 10.9.

If you cannot limit usage to iOS 7 and OS X 10.9, you can write a minimal NSProgress shim to get this functionality. Let me know what you think.

from zipzap.

RLovelett avatar RLovelett commented on August 19, 2024

@pixelglow do you have any recommendations/best practices for reading (extracting) a ZZArchive asynchronously?

Obviously I could just use GCD. Just wondering your thoughts.

from zipzap.

pixelglow avatar pixelglow commented on August 19, 2024

@RLovelett please raise a new issue for this, thanks.

from zipzap.

jimwan avatar jimwan commented on August 19, 2024

@pixelglow , have you already implemented the progress callback now?
-[ZZMutableArchive updateEntries:error:] cannot be used for NSProgress

from zipzap.

robbiehanson avatar robbiehanson commented on August 19, 2024

@pixelglow Also wondering if NSProgress is implemented? I didn't see it in the API.

from zipzap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.