[File Tree] Ask Sandbox for access to Smart Folder
Ask for access to Smart Folder dictionary file, to read its query. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
86dfe8b518
commit
7cb22cfeb0
|
@ -13,6 +13,8 @@
|
|||
|
||||
#import "Logging.h"
|
||||
|
||||
#import "SandboxBroker.h"
|
||||
|
||||
@implementation SmartFolderNode
|
||||
|
||||
- (BOOL)isLeaf {
|
||||
|
@ -20,7 +22,9 @@
|
|||
}
|
||||
|
||||
- (void)updatePath {
|
||||
const void *sbHandle = [[SandboxBroker sharedSandboxBroker] beginFolderAccess:url];
|
||||
NSDictionary *doc = [NSDictionary dictionaryWithContentsOfFile:[url path]];
|
||||
[[SandboxBroker sharedSandboxBroker] endFolderAccess:sbHandle];
|
||||
NSString *rawQuery = [doc objectForKey:@"RawQuery"];
|
||||
NSArray *searchPaths = [[doc objectForKey:@"SearchCriteria"] objectForKey:@"CurrentFolderPath"];
|
||||
|
||||
|
|
Loading…
Reference in New Issue