9/13/2023 0 Comments Extract rar macIncluded 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |