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>
28 lines
396 B
Objective-C
28 lines
396 B
Objective-C
//
|
|
// FileSource.h
|
|
// FileSource
|
|
//
|
|
// Created by Vincent Spader on 3/1/07.
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <File_Extractor/fex.h>
|
|
|
|
#import "Plugin.h"
|
|
|
|
@interface FileSource : NSObject <CogSource> {
|
|
fex_t *fex;
|
|
const void *data;
|
|
NSUInteger offset;
|
|
NSUInteger size;
|
|
|
|
FILE *_fd;
|
|
|
|
NSURL *_url;
|
|
|
|
const void *sbHandle;
|
|
}
|
|
|
|
@end
|