![]() ![]() 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 |