

You may need to right-click and open it in Finder to get through Gatekeeper the first time you do so. It's only ever verified to run in the simulator, but if you provide Team info, it should probably also run on-device.įor large file extraction, the tool uses the rar executable. Included in the source repo is a project named "UnrarExample", that builds as part of the main solution. To open in Xcode, use the UnrarKit.xcworkspace file, which includes the other projects. It will cause the operation to fail, returning nil or NO (depending on the return type, and give an error with error code URKErrorCodeUserCancelled. Using either method above, you can call to stop the operation in progress. [extractFilesProgress addObserver: self forKeyPath:observedSelectorīOOL success = [archive extractFilesTo:extractURL.path NSString *observedSelector = NSStringFromSelector( localizedDescription)) Static void *ExtractFilesContext = &ExtractFilesContext

If you don't have a hierarchy of NSProgress instances, or if you want to observe more details during progress updates in extractFilesTo:overwrite:error:, you can create your own instance of NSProgress and set the URKArchive instance's progress property, like so: Using your own explicit NSProgress instance [extractDataProgress addObserver: self forKeyPath:observedSelector NSString *observedSelector = NSStringFromSelector( fractionCompleted)) URKArchive *archive = initWithURL:aFileURL error: nil] Static void *ExtractDataContext = &ExtractDataContext
