Sandbox Broker now returns a handle to the exact path object that was retained by the caller, so it will be released correctly, regardless of what happens to the list of bookmarked paths. Also refined the bookmark path comparison function. For existing paths, it will find the first match. For new paths, it will prefer the longest path instead, to try to find the deepest matching bookmark. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
27 lines
398 B
Objective-C
27 lines
398 B
Objective-C
//
|
|
// ArchiveSource.h
|
|
// ArchiveSource
|
|
//
|
|
// Created by Christopher Snowhill on 10/4/13.
|
|
// Copyright 2013 __NoWork, Inc__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <File_Extractor/fex.h>
|
|
|
|
#import "Plugin.h"
|
|
|
|
@interface ArchiveSource : NSObject <CogSource> {
|
|
fex_t *fex;
|
|
|
|
const void *data;
|
|
NSUInteger offset;
|
|
NSUInteger size;
|
|
|
|
NSURL *_url;
|
|
|
|
const void *sbHandle;
|
|
}
|
|
|
|
@end
|